|
|
254af2 |
diff --git a/Modules/Setup.dist b/Modules/Setup.dist
|
|
|
254af2 |
index bbc9222..2cf35a9 100644
|
|
|
254af2 |
--- a/Modules/Setup.dist
|
|
|
254af2 |
+++ b/Modules/Setup.dist
|
|
|
8db7d0 |
@@ -153,7 +153,7 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
# modules are to be built as shared libraries (see above for more
|
|
|
8db7d0 |
# detail; also note that *static* reverses this effect):
|
|
|
8db7d0 |
|
|
|
8db7d0 |
-#*shared*
|
|
|
8db7d0 |
+*shared*
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# GNU readline. Unlike previous Python incarnations, GNU readline is
|
|
|
8db7d0 |
# now incorporated in an optional module, configured in the Setup file
|
|
|
254af2 |
@@ -163,33 +163,33 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
# it, depending on your system -- see the GNU readline instructions.
|
|
|
8db7d0 |
# It's okay for this to be a shared library, too.
|
|
|
8db7d0 |
|
|
|
8db7d0 |
-#readline readline.c -lreadline -ltermcap
|
|
|
8db7d0 |
+readline readline.c -lreadline -ltermcap
|
|
|
8db7d0 |
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Modules that should always be present (non UNIX dependent):
|
|
|
8db7d0 |
|
|
|
8db7d0 |
-#array arraymodule.c # array objects
|
|
|
8db7d0 |
-#cmath cmathmodule.c _math.c # -lm # complex math library functions
|
|
|
8db7d0 |
-#math mathmodule.c _math.c # -lm # math library functions, e.g. sin()
|
|
|
8db7d0 |
-#_struct _struct.c # binary structure packing/unpacking
|
|
|
8db7d0 |
-#time timemodule.c # -lm # time operations and variables
|
|
|
8db7d0 |
-#operator operator.c # operator.add() and similar goodies
|
|
|
8db7d0 |
-#_testcapi _testcapimodule.c # Python C API test module
|
|
|
8db7d0 |
-#_random _randommodule.c # Random number generator
|
|
|
8db7d0 |
-#_collections _collectionsmodule.c # Container types
|
|
|
8db7d0 |
+array arraymodule.c # array objects
|
|
|
8db7d0 |
+cmath cmathmodule.c _math.c # -lm # complex math library functions
|
|
|
8db7d0 |
+math mathmodule.c _math.c # -lm # math library functions, e.g. sin()
|
|
|
8db7d0 |
+_struct _struct.c # binary structure packing/unpacking
|
|
|
8db7d0 |
+time timemodule.c # -lm # time operations and variables
|
|
|
8db7d0 |
+operator operator.c # operator.add() and similar goodies
|
|
|
8db7d0 |
+_testcapi _testcapimodule.c # Python C API test module
|
|
|
8db7d0 |
+_random _randommodule.c # Random number generator
|
|
|
8db7d0 |
+_collections _collectionsmodule.c # Container types
|
|
|
8db7d0 |
#_heapq _heapqmodule.c # Heapq type
|
|
|
8db7d0 |
-#itertools itertoolsmodule.c # Functions creating iterators for efficient looping
|
|
|
8db7d0 |
-#strop stropmodule.c # String manipulations
|
|
|
8db7d0 |
-#_functools _functoolsmodule.c # Tools for working with functions and callable objects
|
|
|
8db7d0 |
+itertools itertoolsmodule.c # Functions creating iterators for efficient looping
|
|
|
8db7d0 |
+strop stropmodule.c # String manipulations
|
|
|
8db7d0 |
+_functools _functoolsmodule.c # Tools for working with functions and callable objects
|
|
|
8db7d0 |
#_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c # elementtree accelerator
|
|
|
8db7d0 |
#_pickle _pickle.c # pickle accelerator
|
|
|
8db7d0 |
#datetime datetimemodule.c # date/time type
|
|
|
8db7d0 |
-#_bisect _bisectmodule.c # Bisection algorithms
|
|
|
8db7d0 |
+_bisect _bisectmodule.c # Bisection algorithms
|
|
|
8db7d0 |
|
|
|
8db7d0 |
-#unicodedata unicodedata.c # static Unicode character database
|
|
|
8db7d0 |
+unicodedata unicodedata.c # static Unicode character database
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# access to ISO C locale support
|
|
|
8db7d0 |
-#_locale _localemodule.c # -lintl
|
|
|
8db7d0 |
+_locale _localemodule.c # -lintl
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Standard I/O baseline
|
|
|
8db7d0 |
#_io -I$(srcdir)/Modules/_io _io/bufferedio.c _io/bytesio.c _io/fileio.c _io/iobase.c _io/_iomodule.c _io/stringio.c _io/textio.c
|
|
|
254af2 |
@@ -199,41 +199,41 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
# (If you have a really backward UNIX, select and socket may not be
|
|
|
8db7d0 |
# supported...)
|
|
|
8db7d0 |
|
|
|
8db7d0 |
-#fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
|
|
|
8db7d0 |
-#spwd spwdmodule.c # spwd(3)
|
|
|
8db7d0 |
-#grp grpmodule.c # grp(3)
|
|
|
8db7d0 |
-#select selectmodule.c # select(2); not on ancient System V
|
|
|
8db7d0 |
+fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
|
|
|
8db7d0 |
+spwd spwdmodule.c # spwd(3)
|
|
|
8db7d0 |
+grp grpmodule.c # grp(3)
|
|
|
8db7d0 |
+select selectmodule.c # select(2); not on ancient System V
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Memory-mapped files (also works on Win32).
|
|
|
8db7d0 |
-#mmap mmapmodule.c
|
|
|
8db7d0 |
+mmap mmapmodule.c
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# CSV file helper
|
|
|
8db7d0 |
-#_csv _csv.c
|
|
|
8db7d0 |
+_csv _csv.c
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Socket module helper for socket(2)
|
|
|
8db7d0 |
-#_socket socketmodule.c timemodule.c
|
|
|
8db7d0 |
+_socket socketmodule.c timemodule.c
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Socket module helper for SSL support; you must comment out the other
|
|
|
8db7d0 |
# socket line above, and possibly edit the SSL variable:
|
|
|
8db7d0 |
#SSL=/usr/local/ssl
|
|
|
8db7d0 |
-#_ssl _ssl.c \
|
|
|
8db7d0 |
-# -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
|
|
|
8db7d0 |
-# -L$(SSL)/lib -lssl -lcrypto
|
|
|
8db7d0 |
+_ssl _ssl.c \
|
|
|
8db7d0 |
+ -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
|
|
|
8db7d0 |
+ -L$(SSL)/lib -lssl -lcrypto
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# The crypt module is now disabled by default because it breaks builds
|
|
|
8db7d0 |
# on many systems (where -lcrypt is needed), e.g. Linux (I believe).
|
|
|
8db7d0 |
#
|
|
|
8db7d0 |
# First, look at Setup.config; configure may have set this for you.
|
|
|
8db7d0 |
|
|
|
8db7d0 |
-#crypt cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems
|
|
|
8db7d0 |
+crypt cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems
|
|
|
8db7d0 |
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Some more UNIX dependent modules -- off by default, since these
|
|
|
8db7d0 |
# are not supported by all UNIX systems:
|
|
|
8db7d0 |
|
|
|
8db7d0 |
-#nis nismodule.c -lnsl # Sun yellow pages -- not everywhere
|
|
|
8db7d0 |
-#termios termios.c # Steen Lumholt's termios module
|
|
|
8db7d0 |
-#resource resource.c # Jeremy Hylton's rlimit interface
|
|
|
8db7d0 |
+nis nismodule.c -lnsl -ltirpc -I/usr/include/tirpc -I/usr/include/nsl -L/usr/lib/nsl
|
|
|
8db7d0 |
+termios termios.c # Steen Lumholt's termios module
|
|
|
8db7d0 |
+resource resource.c # Jeremy Hylton's rlimit interface
|
|
|
8db7d0 |
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Multimedia modules -- off by default.
|
|
|
254af2 |
@@ -241,8 +241,8 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
# #993173 says audioop works on 64-bit platforms, though.
|
|
|
8db7d0 |
# These represent audio samples or images as strings:
|
|
|
8db7d0 |
|
|
|
8db7d0 |
-#audioop audioop.c # Operations on audio samples
|
|
|
8db7d0 |
-#imageop imageop.c # Operations on images
|
|
|
8db7d0 |
+audioop audioop.c # Operations on audio samples
|
|
|
8db7d0 |
+imageop imageop.c # Operations on images
|
|
|
8db7d0 |
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Note that the _md5 and _sha modules are normally only built if the
|
|
|
254af2 |
@@ -252,14 +252,14 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
# Message-Digest Algorithm, described in RFC 1321. The necessary files
|
|
|
8db7d0 |
# md5.c and md5.h are included here.
|
|
|
8db7d0 |
|
|
|
8db7d0 |
-#_md5 md5module.c md5.c
|
|
|
8db7d0 |
+_md5 md5module.c md5.c
|
|
|
8db7d0 |
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# The _sha module implements the SHA checksum algorithms.
|
|
|
8db7d0 |
# (NIST's Secure Hash Algorithms.)
|
|
|
8db7d0 |
-#_sha shamodule.c
|
|
|
8db7d0 |
-#_sha256 sha256module.c
|
|
|
8db7d0 |
-#_sha512 sha512module.c
|
|
|
8db7d0 |
+_sha shamodule.c
|
|
|
8db7d0 |
+_sha256 sha256module.c
|
|
|
8db7d0 |
+_sha512 sha512module.c
|
|
|
8db7d0 |
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# SGI IRIX specific modules -- off by default.
|
|
|
254af2 |
@@ -306,12 +306,12 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
# A Linux specific module -- off by default; this may also work on
|
|
|
8db7d0 |
# some *BSDs.
|
|
|
8db7d0 |
|
|
|
8db7d0 |
-#linuxaudiodev linuxaudiodev.c
|
|
|
8db7d0 |
+linuxaudiodev linuxaudiodev.c
|
|
|
8db7d0 |
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# George Neville-Neil's timing module:
|
|
|
8db7d0 |
|
|
|
8db7d0 |
-#timing timingmodule.c
|
|
|
8db7d0 |
+timing timingmodule.c
|
|
|
8db7d0 |
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# The _tkinter module.
|
|
|
254af2 |
@@ -326,7 +326,7 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
# every system.
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# *** Always uncomment this (leave the leading underscore in!):
|
|
|
8db7d0 |
-# _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
|
|
|
8db7d0 |
+_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
|
|
|
8db7d0 |
# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
|
|
|
8db7d0 |
# -L/usr/local/lib \
|
|
|
8db7d0 |
# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
|
|
|
254af2 |
@@ -336,7 +336,7 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
# *** Or uncomment this for Solaris:
|
|
|
8db7d0 |
# -I/usr/openwin/include \
|
|
|
8db7d0 |
# *** Uncomment and edit for Tix extension only:
|
|
|
8db7d0 |
-# -DWITH_TIX -ltix8.1.8.2 \
|
|
|
8db7d0 |
+ -DWITH_TIX -ltix \
|
|
|
8db7d0 |
# *** Uncomment and edit for BLT extension only:
|
|
|
8db7d0 |
# -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
|
|
|
8db7d0 |
# *** Uncomment and edit for PIL (TkImaging) extension only:
|
|
|
254af2 |
@@ -345,7 +345,7 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
# *** Uncomment and edit for TOGL extension only:
|
|
|
8db7d0 |
# -DWITH_TOGL togl.c \
|
|
|
8db7d0 |
# *** Uncomment and edit to reflect your Tcl/Tk versions:
|
|
|
8db7d0 |
-# -ltk8.2 -ltcl8.2 \
|
|
|
8db7d0 |
+ -ltk -ltcl \
|
|
|
8db7d0 |
# *** Uncomment and edit to reflect where your X11 libraries are:
|
|
|
8db7d0 |
# -L/usr/X11R6/lib \
|
|
|
8db7d0 |
# *** Or uncomment this for Solaris:
|
|
|
254af2 |
@@ -355,7 +355,7 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
# *** Uncomment for AIX:
|
|
|
8db7d0 |
# -lld \
|
|
|
8db7d0 |
# *** Always uncomment this; X11 libraries to link with:
|
|
|
8db7d0 |
-# -lX11
|
|
|
8db7d0 |
+ -lX11
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Lance Ellinghaus's syslog module
|
|
|
8db7d0 |
#syslog syslogmodule.c # syslog daemon interface
|
|
|
254af2 |
@@ -377,7 +377,7 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
# it is a highly experimental and dangerous device for calling
|
|
|
8db7d0 |
# *arbitrary* C functions in *arbitrary* shared libraries:
|
|
|
8db7d0 |
|
|
|
8db7d0 |
-#dl dlmodule.c
|
|
|
8db7d0 |
+dl dlmodule.c
|
|
|
8db7d0 |
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Modules that provide persistent dictionary-like semantics. You will
|
|
|
254af2 |
@@ -400,7 +400,7 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
#
|
|
|
8db7d0 |
# First, look at Setup.config; configure may have set this for you.
|
|
|
8db7d0 |
|
|
|
8db7d0 |
-#gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
|
|
|
8db7d0 |
+gdbm gdbmmodule.c -lgdbm
|
|
|
8db7d0 |
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Sleepycat Berkeley DB interface.
|
|
|
254af2 |
@@ -415,11 +415,9 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
#
|
|
|
8db7d0 |
# Edit the variables DB and DBLIBVERto point to the db top directory
|
|
|
8db7d0 |
# and the subdirectory of PORT where you built it.
|
|
|
8db7d0 |
-#DB=/usr/local/BerkeleyDB.4.0
|
|
|
8db7d0 |
-#DBLIBVER=4.0
|
|
|
8db7d0 |
-#DBINC=$(DB)/include
|
|
|
8db7d0 |
-#DBLIB=$(DB)/lib
|
|
|
8db7d0 |
-#_bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb-$(DBLIBVER)
|
|
|
8db7d0 |
+DBINC=/usr/include/libdb
|
|
|
8db7d0 |
+DBLIB=/usr/lib
|
|
|
8db7d0 |
+_bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Historical Berkeley DB 1.85
|
|
|
8db7d0 |
#
|
|
|
254af2 |
@@ -434,14 +432,14 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Helper module for various ascii-encoders
|
|
|
8db7d0 |
-#binascii binascii.c
|
|
|
8db7d0 |
+binascii binascii.c
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Fred Drake's interface to the Python parser
|
|
|
8db7d0 |
-#parser parsermodule.c
|
|
|
8db7d0 |
+parser parsermodule.c
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# cStringIO and cPickle
|
|
|
8db7d0 |
-#cStringIO cStringIO.c
|
|
|
8db7d0 |
-#cPickle cPickle.c
|
|
|
8db7d0 |
+cStringIO cStringIO.c
|
|
|
8db7d0 |
+cPickle cPickle.c
|
|
|
8db7d0 |
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Lee Busby's SIGFPE modules.
|
|
|
254af2 |
@@ -464,7 +462,7 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
# Andrew Kuchling's zlib module.
|
|
|
8db7d0 |
# This require zlib 1.1.3 (or later).
|
|
|
8db7d0 |
# See http://www.gzip.org/zlib/
|
|
|
8db7d0 |
-#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
|
|
|
8db7d0 |
+zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Interface to the Expat XML parser
|
|
|
254af2 |
# More information on Expat can be found at www.libexpat.org.
|
|
|
254af2 |
@@ -475,14 +473,14 @@ GLHACK=-Dclear=__GLclear
|
|
|
8db7d0 |
# Hye-Shik Chang's CJKCodecs
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# multibytecodec is required for all the other CJK codec modules
|
|
|
8db7d0 |
-#_multibytecodec cjkcodecs/multibytecodec.c
|
|
|
254af2 |
-
|
|
|
8db7d0 |
-#_codecs_cn cjkcodecs/_codecs_cn.c
|
|
|
8db7d0 |
-#_codecs_hk cjkcodecs/_codecs_hk.c
|
|
|
8db7d0 |
-#_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
|
|
|
8db7d0 |
-#_codecs_jp cjkcodecs/_codecs_jp.c
|
|
|
8db7d0 |
-#_codecs_kr cjkcodecs/_codecs_kr.c
|
|
|
8db7d0 |
-#_codecs_tw cjkcodecs/_codecs_tw.c
|
|
|
254af2 |
+_multibytecodec cjkcodecs/multibytecodec.c
|
|
|
254af2 |
+
|
|
|
8db7d0 |
+_codecs_cn cjkcodecs/_codecs_cn.c
|
|
|
8db7d0 |
+_codecs_hk cjkcodecs/_codecs_hk.c
|
|
|
8db7d0 |
+_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
|
|
|
8db7d0 |
+_codecs_jp cjkcodecs/_codecs_jp.c
|
|
|
8db7d0 |
+_codecs_kr cjkcodecs/_codecs_kr.c
|
|
|
8db7d0 |
+_codecs_tw cjkcodecs/_codecs_tw.c
|
|
|
8db7d0 |
|
|
|
8db7d0 |
# Example -- included for reference only:
|
|
|
8db7d0 |
# xx xxmodule.c
|