@@ -455,32 +455,30 @@ Linker (ld) libraries and flags for threads
455455Configuring additional built-in modules
456456---------------------------------------
457457
458- You can configure the interpreter to contain fewer or more built-in
459- modules by editing the Modules/Setup file. This file is initially
460- copied from Setup.dist by the configure script; if it does not exist
461- yet, create it by copying Modules/Setup.dist yourself (configure will
462- never overwrite it). Never edit Setup.dist -- always edit Setup or
463- Setup.local (see below). Read the comments in the file for
464- information on what kind of edits are allowed. When you have edited
465- Setup in the Modules directory, the interpreter will automatically be
466- rebuilt the next time you run make in the toplevel directory. (When
467- working inside the Modules directory, use "make Makefile; make".)
468-
469- The default collection of modules should build on any Unix system, but
470- many optional modules should work on all modern Unices (e.g. try
471- audioop, imageop, crypt, dbm, gdbm, nis, resource, termios, timing,
472- syslog, _curses, pyexpat, readline, rgbimg, zlib). Often the quickest
473- way to determine whether a particular module works or not is to see if
474- it will build: enable it in Setup, then if you get compilation or link
458+ Starting with Python 2.1, the setup.py script at the top of the source
459+ distribution attempts to detect which modules can be built and
460+ automatically compiles them. Autodetection doesn't always work, so
461+ you can customize the configuration by editing the Modules/Setup file.
462+ This file is initially copied from Setup.dist by the configure script;
463+ if it does not exist yet, create it by copying Modules/Setup.dist
464+ yourself (configure will never overwrite it). Never edit Setup.dist
465+ -- always edit Setup or Setup.local (see below). Read the comments in
466+ the file for information on what kind of edits are allowed. When you
467+ have edited Setup in the Modules directory, the interpreter will
468+ automatically be rebuilt the next time you run make in the toplevel
469+ directory. (When working inside the Modules directory, use "make
470+ Makefile; make".)
471+
472+ Many useful modules can be built on any Unix system, but some optional
473+ modules can't be reliably autodetected. Often the quickest way to
474+ determine whether a particular module works or not is to see if it
475+ will build: enable it in Setup, then if you get compilation or link
475476errors, disable it -- you're either missing support or need to adjust
476477the compilation and linking parameters for that module.
477478
478479On SGI IRIX, there are modules that interface to many SGI specific
479- system libraries, e.g. the GL library and the audio hardware.
480-
481- For SunOS and Solaris, enable module "sunaudiodev" to support the
482- audio device. Likewise, for Linux and some *BSD systems, enable
483- "linuxaudiodev".
480+ system libraries, e.g. the GL library and the audio hardware. These
481+ modules will not be built by the setup.py script.
484482
485483In addition to the file Setup, you can also edit the file Setup.local.
486484(the makesetup script processes both). You may find it more
0 commit comments