2 # The file Setup is used by the makesetup script to construct the files
3 # Makefile and config.c, from Makefile.pre and config.c.in,
4 # respectively. The file Setup itself is initially copied from
5 # Setup.in; once it exists it will not be overwritten, so you can edit
6 # Setup to your heart's content. Note that Makefile.pre is created
7 # from Makefile.pre.in by the toplevel configure script.
9 # (VPATH notes: Setup and Makefile.pre are in the build directory, as
10 # are Makefile and config.c; the *.in files are in the source
13 # Each line in this file describes one or more optional modules.
14 # Comment out lines to suppress modules.
15 # Lines have the following structure:
17 # <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
19 # <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
20 # <cpparg> is anything starting with -I, -D, -U or -C
21 # <library> is anything ending in .a or beginning with -l or -L
22 # <module> is anything else but should be a valid Python
23 # identifier (letters, digits, underscores, beginning with non-digit)
25 # (As the makesetup script changes, it may recognize some other
26 # arguments as well, e.g. *.so and *.sl as libraries. See the big
27 # case statement in the makesetup script.)
29 # Lines can also have the form
33 # which defines a Make variable definition inserted into Makefile.in
35 # Finally, if a line contains just the word "*shared*" (without the
36 # quotes but with the stars), then the following modules will not be
37 # included in the config.c file, nor in the list of objects to be
38 # added to the library archive, and their linker options won't be
39 # added to the linker options, but rules to create their .o files and
40 # their shared libraries will still be added to the Makefile, and
41 # their names will be collected in the Make variable SHAREDMODS. This
42 # is used to build modules as shared libraries. (They can be
43 # installed using "make sharedinstall", which is implied by the
44 # toplevel "make install" target.) (For compatibility,
45 # *noconfig* has the same effect as *shared*.)
47 # In addition, *static* reverses this effect (negating a previous
50 # NOTE: As a standard policy, as many modules as can be supported by a
51 # platform should be present. The distribution comes with all modules
52 # enabled that are supported by most platforms and don't require you
53 # to ftp sources from elsewhere.
56 # Some special rules to define PYTHONPATH.
57 # Edit the definitions below to indicate which options you are using.
58 # Don't add any whitespace or comments!
60 # Directories where library files get installed.
61 # DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
63 MACHDESTLIB=$(BINLIBDEST)
65 # NOTE: all the paths are now relative to the prefix that is computed
68 # Standard path -- don't edit.
69 # No leading colon since this is the first entry.
70 # Empty since this is now just the runtime prefix.
73 # Site specific path components -- should begin with : if non-empty
76 # Standard path components for test modules
79 # Path components for machine- or system-dependent modules and shared libraries
80 MACHDEPPATH=:plat-$(MACHDEP)
82 COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
83 PYTHONPATH=$(COREPYTHONPATH)
86 # The modules listed here can't be built as shared libraries for
87 # various reasons; therefore they are listed here instead of in the
90 # Some modules that are normally always on:
92 regex regexmodule.c regexpr.c # Regular expressions, GNU Emacs style
93 pcre pcremodule.c pypcre.c # Regular expressions, Perl style (for re.py)
94 posix posixmodule.c # posix (UNIX) system calls
95 signal signalmodule.c # signal(2)
97 # The SGI specific GL module:
99 GLHACK=-Dclear=__GLclear
100 #gl glmodule.c cgensupport.c -I$(srcdir) $(GLHACK) -lgl -lX11
102 # The thread module is now automatically enabled, see Setup.thread.
104 # Pure module. Cannot be linked dynamically.
105 # -DWITH_QUANTIFY, -DWITH_PURIFY, or -DWITH_ALL_PURE
106 #WHICH_PURE_PRODUCTS=-DWITH_ALL_PURE
107 #PURE_INCLS=-I/usr/local/include
108 #PURE_STUBLIBS=-L/usr/local/lib -lpurify_stubs -lquantify_stubs
109 #pure puremodule.c $(WHICH_PURE_PRODUCTS) $(PURE_INCLS) $(PURE_STUBLIBS)
111 # Uncommenting the following line tells makesetup that all following
112 # modules are to be built as shared libraries (see above for more
113 # detail; also note that *static* reverses this effect):
117 # GNU readline. Unlike previous Python incarnations, GNU readline is
118 # now incorporated in an optional module, configured in the Setup file
119 # instead of by a configure script switch. You may have to insert a
120 # -L option pointing to the directory where libreadline.* lives,
121 # and you may have to change -ltermcap to -ltermlib or perhaps remove
122 # it, depending on your system -- see the GNU readline instructions.
123 # It's okay for this to be a shared library, too.
125 #readline readline.c -lreadline -ltermcap
128 # Modules that should always be present (non UNIX dependent):
130 array arraymodule.c # array objects
131 cmath cmathmodule.c # -lm # complex math library functions
132 math mathmodule.c # -lm # math library functions, e.g. sin()
133 strop stropmodule.c # fast string operations implemented in C
134 struct structmodule.c # binary structure packing/unpacking
135 time timemodule.c # -lm # time operations and variables
136 operator operator.c # operator.add() and similar goodies
138 #_locale _localemodule.c # access to ISO C locale support
141 # Modules with some UNIX dependencies -- on by default:
142 # (If you have a really backward UNIX, select and socket may not be
145 fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
146 pwd pwdmodule.c # pwd(3)
147 grp grpmodule.c # grp(3)
148 select selectmodule.c # select(2); not on ancient System V
149 socket socketmodule.c # socket(2); not on ancient System V
150 #_socket socketmodule.c # socket(2); use this one for BeOS sockets
151 errno errnomodule.c # posix (UNIX) errno values
153 # The crypt module is now disabled by default because it breaks builds
154 # on many systems (where -lcrypt is needed), e.g. Linux (I believe).
155 #crypt cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems
158 # Some more UNIX dependent modules -- off by default, since these
159 # are not supported by all UNIX systems:
161 #nis nismodule.c # Sun yellow pages -- not everywhere
162 #termios termios.c # Steen Lumholt's termios module
163 #resource resource.c # Jeremy Hylton's rlimit interface
166 # Multimedia modules -- off by default.
167 # These don't work for 64-bit platforms!!!
168 # These represent audio samples or images as strings:
170 #audioop audioop.c # Operations on audio samples
171 #imageop imageop.c # Operations on images
172 #rgbimg rgbimgmodule.c # Read SGI RGB image files (but coded portably)
175 # The stdwin module provides a simple, portable (between X11 and Mac)
176 # windowing interface. You need to ftp the STDWIN library, e.g. from
177 # ftp://ftp.cwi.nl/pub/stdwin. (If you get it elsewhere, be sure to
178 # get version 1.0 or higher!) The STDWIN variable must point to the
179 # STDWIN toplevel directory.
181 # Uncomment and edit as needed:
182 #STDWIN=/ufs/guido/src/stdwin
184 # Uncomment these lines:
185 #STDWINPATH=:lib-stdwin
186 #LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a
187 #LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a
188 #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11
190 # Use this instead of the last two lines above for alphanumeric stdwin:
191 #LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a
192 #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap
195 # The md5 module implements the RSA Data Security, Inc. MD5
196 # Message-Digest Algorithm, described in RFC 1321. The necessary files
197 # md5c.c and md5.h are included here.
199 md5 md5module.c md5c.c
202 # The sha module implements the SHA checksum algorithm.
203 # (NIST's Secure Hash Algorithm.)
207 # The mpz module interfaces to the GNU Multiple Precision library.
208 # You need to ftp the GNU MP library.
209 # The GMP variable must point to the GMP source directory.
210 # This was originally written and tested against GMP 1.2 and 1.3.2.
211 # It has been modified by Rob Hooft to work with 2.0.2 as well, but I
212 # haven't tested it recently.
214 # A compatible MP library unencombered by the GPL also exists. It was
215 # posted to comp.sources.misc in volume 40 and is widely available from
216 # FTP archive sites. One URL for it is:
217 # ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
219 #GMP=/ufs/guido/src/gmp
220 #mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
223 # SGI IRIX specific modules -- off by default.
225 # These module work on any SGI machine:
227 # *** gl must be enabled higher up in this file ***
228 #fm fmmodule.c $(GLHACK) -lfm -lgl # Font Manager
229 #sgi sgimodule.c # sgi.nap() and a few more
231 # This module requires the header file
232 # /usr/people/4Dgifts/iristools/include/izoom.h:
233 #imgfile imgfile.c -limage -lgutil -lgl -lm # Image Processing Utilities
236 # These modules require the Multimedia Development Option (I think):
238 #al almodule.c -laudio # Audio Library
239 #cd cdmodule.c -lcdaudio -lds -lmediad # CD Audio Library
240 #cl clmodule.c -lcl -lawareaudio # Compression Library
241 #sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11 # Starter Video
244 # The FORMS library, by Mark Overmars, implements user interface
245 # components such as dialogs and buttons using SGI's GL and FM
246 # libraries. You must ftp the FORMS library separately from
247 # ftp://ftp.cs.ruu.nl/pub/SGI/FORMS. It was tested with FORMS 2.2a.
248 # NOTE: if you want to be able to use FORMS and curses simultaneously
249 # (or both link them statically into the same binary), you must
250 # compile all of FORMS with the cc option "-Dclear=__GLclear".
252 # The FORMS variable must point to the FORMS subdirectory of the forms
253 # toplevel directory:
255 #FORMS=/ufs/guido/src/forms/FORMS
256 #fl flmodule.c -I$(FORMS) $(GLHACK) $(FORMS)/libforms.a -lfm -lgl
259 # SunOS specific modules -- off by default:
261 #sunaudiodev sunaudiodev.c
264 # George Neville-Neil's timing module:
266 #timing timingmodule.c
269 # The _tkinter module.
271 # The TKPATH variable is always enabled, to save you the effort.
274 # The command for _tkinter is long and site specific. Please
275 # uncomment and/or edit those parts as indicated. If you don't have a
276 # specific extension (e.g. Tix or BLT), leave the corresponding line
277 # commented out. (Leave the trailing backslashes in! If you
278 # experience strange errors, you may want to join all uncommented
279 # lines and remove the backslashes -- the backslash interpretation is
280 # done by the shell's "read" command and it may not be implemented on
283 # *** Always uncomment this (leave the leading underscore in!):
284 # _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
285 # *** Uncomment and edit to reflect where your Tcl/Tk headers are:
286 # -I/usr/local/include \
287 # *** Uncomment and edit to reflect where your X11 header files are:
288 # -I/usr/X11R6/include \
289 # *** Or uncomment this for Solaris:
290 # -I/usr/openwin/include \
291 # *** Uncomment and edit for Tix extension only:
292 # -DWITH_TIX -ltix4.1.8.0 \
293 # *** Uncomment and edit for BLT extension only:
294 # -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
295 # *** Uncomment and edit for PIL (TkImaging) extension only:
296 # -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \
297 # *** Uncomment and edit for TOGL extension only:
298 # -DWITH_TOGL togl.c \
299 # *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
301 # *** Uncomment and edit to reflect your Tcl/Tk versions:
303 # *** Uncomment and edit to reflect where your X11 libraries are:
305 # *** Or uncomment this for Solaris:
306 # -L/usr/openwin/lib \
307 # *** Uncomment these for TOGL extension only:
308 # -lGL -lGLU -lXext -lXmu \
309 # *** Uncomment for AIX:
311 # *** Always uncomment this; X11 libraries to link with:
314 # Lance Ellinghaus's modules:
316 rotor rotormodule.c # enigma-inspired encryption
317 #syslog syslogmodule.c # syslog daemon interface
320 # Lance's curses module. This requires the System V version of
321 # curses, sometimes known as ncurses (e.g. on Linux, link with
322 # -lncurses instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include
323 # -L/usr/5lib before -lcurses).
325 #curses cursesmodule.c -lcurses -ltermcap
329 # Tommy Burnette's 'new' module (creates new empty objects of certain kinds):
334 # Generic (SunOS / SVR4) dynamic loading module.
335 # This is not needed for dynamic loading of Python modules --
336 # it is a highly experimental and dangerous device for calling
337 # *arbitrary* C functions in *arbitrary* shared libraries:
342 # Modules that provide persistent dictionary-like semantics. You will
343 # probably want to arrange for at least one of them to be available on
344 # your machine, though none are defined by default because of library
345 # dependencies. The Python module anydbm.py provides an
346 # implementation independent wrapper for these; dumbdbm.py provides
347 # similar functionality (but slower of course) implemented in Python.
349 # The standard Unix dbm module:
351 #dbm dbmmodule.c # dbm(3) may require -lndbm or similar
353 # Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm:
355 #gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
358 # Berkeley DB interface.
360 # This requires the Berkeley DB code, see
361 # ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz
363 # Edit the variables DB and DBPORT to point to the db top directory
364 # and the subdirectory of PORT where you built it.
366 # (See http://www.jenkon-dev.com/~rd/python/ for an interface to
369 #DB=/depot/sundry/src/berkeley-db/db.1.85
370 #DBPORT=$(DB)/PORT/irix.5.3
371 #bsddb bsddbmodule.c -I$(DBPORT)/include -I$(DBPORT) $(DBPORT)/libdb.a
375 # David Wayne Williams' soundex module (obsolete -- this will disappear!)
378 # Helper module for various ascii-encoders
381 # Fred Drake's interface to the Python parser
382 parser parsermodule.c
384 # Digital Creations' cStringIO and cPickle
385 cStringIO cStringIO.c
389 # Lee Busby's SIGFPE modules.
390 # The library to link fpectl with is platform specific.
391 # Choose *one* of the options below for fpectl:
393 # For SGI IRIX (tested on 5.3):
394 #fpectl fpectlmodule.c -lfpe
396 # For Solaris with SunPro compiler (tested on Solaris 2.5 with SunPro C 4.2):
397 # (Without the compiler you don't have -lsunmath.)
398 #fpectl fpectlmodule.c -R/opt/SUNWspro/lib -lsunmath -lm
400 # For other systems: see instructions in fpectlmodule.c.
401 #fpectl fpectlmodule.c ...
403 # Test module for fpectl. No extra libraries needed.
404 #fpetest fpetestmodule.c
406 # Andrew Kuchling's zlib module.
407 # This require zlib 1.1.3 (or later).
408 # See http://www.cdrom.com/pub/infozip/zlib/
409 #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
412 # Example -- included for reference only: