mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Update build notes to mention setup.py
This commit is contained in:
parent
9e9bb01cb4
commit
ebe3045f3b
1 changed files with 19 additions and 21 deletions
40
README
40
README
|
@ -455,32 +455,30 @@ Linker (ld) libraries and flags for threads
|
||||||
Configuring additional built-in modules
|
Configuring additional built-in modules
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
You can configure the interpreter to contain fewer or more built-in
|
Starting with Python 2.1, the setup.py script at the top of the source
|
||||||
modules by editing the Modules/Setup file. This file is initially
|
distribution attempts to detect which modules can be built and
|
||||||
copied from Setup.dist by the configure script; if it does not exist
|
automatically compiles them. Autodetection doesn't always work, so
|
||||||
yet, create it by copying Modules/Setup.dist yourself (configure will
|
you can customize the configuration by editing the Modules/Setup file.
|
||||||
never overwrite it). Never edit Setup.dist -- always edit Setup or
|
This file is initially copied from Setup.dist by the configure script;
|
||||||
Setup.local (see below). Read the comments in the file for
|
if it does not exist yet, create it by copying Modules/Setup.dist
|
||||||
information on what kind of edits are allowed. When you have edited
|
yourself (configure will never overwrite it). Never edit Setup.dist
|
||||||
Setup in the Modules directory, the interpreter will automatically be
|
-- always edit Setup or Setup.local (see below). Read the comments in
|
||||||
rebuilt the next time you run make in the toplevel directory. (When
|
the file for information on what kind of edits are allowed. When you
|
||||||
working inside the Modules directory, use "make Makefile; make".)
|
have edited Setup in the Modules directory, the interpreter will
|
||||||
|
automatically be rebuilt the next time you run make in the toplevel
|
||||||
|
directory. (When working inside the Modules directory, use "make
|
||||||
|
Makefile; make".)
|
||||||
|
|
||||||
The default collection of modules should build on any Unix system, but
|
Many useful modules can be built on any Unix system, but some optional
|
||||||
many optional modules should work on all modern Unices (e.g. try
|
modules can't be reliably autodetected. Often the quickest way to
|
||||||
audioop, imageop, crypt, dbm, gdbm, nis, resource, termios, timing,
|
determine whether a particular module works or not is to see if it
|
||||||
syslog, _curses, pyexpat, readline, rgbimg, zlib). Often the quickest
|
will build: enable it in Setup, then if you get compilation or link
|
||||||
way to determine whether a particular module works or not is to see if
|
|
||||||
it will build: enable it in Setup, then if you get compilation or link
|
|
||||||
errors, disable it -- you're either missing support or need to adjust
|
errors, disable it -- you're either missing support or need to adjust
|
||||||
the compilation and linking parameters for that module.
|
the compilation and linking parameters for that module.
|
||||||
|
|
||||||
On SGI IRIX, there are modules that interface to many SGI specific
|
On SGI IRIX, there are modules that interface to many SGI specific
|
||||||
system libraries, e.g. the GL library and the audio hardware.
|
system libraries, e.g. the GL library and the audio hardware. These
|
||||||
|
modules will not be built by the setup.py script.
|
||||||
For SunOS and Solaris, enable module "sunaudiodev" to support the
|
|
||||||
audio device. Likewise, for Linux and some *BSD systems, enable
|
|
||||||
"linuxaudiodev".
|
|
||||||
|
|
||||||
In addition to the file Setup, you can also edit the file Setup.local.
|
In addition to the file Setup, you can also edit the file Setup.local.
|
||||||
(the makesetup script processes both). You may find it more
|
(the makesetup script processes both). You may find it more
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue