Setup 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. # -*- makefile -*-
  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.dist; 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.
  8. # (VPATH notes: Setup and Makefile.pre are in the build directory, as
  9. # are Makefile and config.c; the *.in and *.dist files are in the source
  10. # directory.)
  11. # Each line in this file describes one or more optional modules.
  12. # Modules enabled here will not be compiled by the setup.py script,
  13. # so the file can be used to override setup.py's behavior.
  14. # Lines have the following structure:
  15. #
  16. # <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
  17. #
  18. # <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
  19. # <cpparg> is anything starting with -I, -D, -U or -C
  20. # <library> is anything ending in .a or beginning with -l or -L
  21. # <module> is anything else but should be a valid Python
  22. # identifier (letters, digits, underscores, beginning with non-digit)
  23. #
  24. # (As the makesetup script changes, it may recognize some other
  25. # arguments as well, e.g. *.so and *.sl as libraries. See the big
  26. # case statement in the makesetup script.)
  27. #
  28. # Lines can also have the form
  29. #
  30. # <name> = <value>
  31. #
  32. # which defines a Make variable definition inserted into Makefile.in
  33. #
  34. # Finally, if a line contains just the word "*shared*" (without the
  35. # quotes but with the stars), then the following modules will not be
  36. # built statically. The build process works like this:
  37. #
  38. # 1. Build all modules that are declared as static in Modules/Setup,
  39. # combine them into libpythonxy.a, combine that into python.
  40. # 2. Build all modules that are listed as shared in Modules/Setup.
  41. # 3. Invoke setup.py. That builds all modules that
  42. # a) are not builtin, and
  43. # b) are not listed in Modules/Setup, and
  44. # c) can be build on the target
  45. #
  46. # Therefore, modules declared to be shared will not be
  47. # included in the config.c file, nor in the list of objects to be
  48. # added to the library archive, and their linker options won't be
  49. # added to the linker options. Rules to create their .o files and
  50. # their shared libraries will still be added to the Makefile, and
  51. # their names will be collected in the Make variable SHAREDMODS. This
  52. # is used to build modules as shared libraries. (They can be
  53. # installed using "make sharedinstall", which is implied by the
  54. # toplevel "make install" target.) (For compatibility,
  55. # *noconfig* has the same effect as *shared*.)
  56. #
  57. # In addition, *static* explicitly declares the following modules to
  58. # be static. Lines containing "*static*" and "*shared*" may thus
  59. # alternate throughout this file.
  60. # NOTE: As a standard policy, as many modules as can be supported by a
  61. # platform should be present. The distribution comes with all modules
  62. # enabled that are supported by most platforms and don't require you
  63. # to ftp sources from elsewhere.
  64. # Some special rules to define PYTHONPATH.
  65. # Edit the definitions below to indicate which options you are using.
  66. # Don't add any whitespace or comments!
  67. # Directories where library files get installed.
  68. # DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
  69. DESTLIB=$(LIBDEST)
  70. MACHDESTLIB=$(BINLIBDEST)
  71. # NOTE: all the paths are now relative to the prefix that is computed
  72. # at run time!
  73. # Standard path -- don't edit.
  74. # No leading colon since this is the first entry.
  75. # Empty since this is now just the runtime prefix.
  76. DESTPATH=
  77. # Site specific path components -- should begin with : if non-empty
  78. SITEPATH=
  79. # Standard path components for test modules
  80. TESTPATH=
  81. # Path components for machine- or system-dependent modules and shared libraries
  82. MACHDEPPATH=:$(PLATDIR)
  83. EXTRAMACHDEPPATH=
  84. # Path component for the Tkinter-related modules
  85. # The TKPATH variable is always enabled, to save you the effort.
  86. TKPATH=:lib-tk
  87. # Path component for old modules.
  88. OLDPATH=:lib-old
  89. COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(EXTRAMACHDEPPATH)$(TKPATH)$(OLDPATH)
  90. PYTHONPATH=$(COREPYTHONPATH)
  91. # The modules listed here can't be built as shared libraries for
  92. # various reasons; therefore they are listed here instead of in the
  93. # normal order.
  94. # This only contains the minimal set of modules required to run the
  95. # setup.py script in the root of the Python source tree.
  96. posix posixmodule.c # posix (UNIX) system calls
  97. errno errnomodule.c # posix (UNIX) errno values
  98. pwd pwdmodule.c # this is needed to find out the user's home dir
  99. # if $HOME is not set
  100. _sre _sre.c # Fredrik Lundh's new regular expressions
  101. _codecs _codecsmodule.c # access to the builtin codecs and codec registry
  102. _weakref _weakref.c # weak references
  103. # The zipimport module is always imported at startup. Having it as a
  104. # builtin module avoids some bootstrapping problems and reduces overhead.
  105. zipimport zipimport.c
  106. # The rest of the modules listed in this file are all commented out by
  107. # default. Usually they can be detected and built as dynamically
  108. # loaded modules by the new setup.py script added in Python 2.1. If
  109. # you're on a platform that doesn't support dynamic loading, want to
  110. # compile modules statically into the Python binary, or need to
  111. # specify some odd set of compiler switches, you can uncomment the
  112. # appropriate lines below.
  113. # ======================================================================
  114. # The Python symtable module depends on .h files that setup.py doesn't track
  115. _symtable symtablemodule.c
  116. # The SGI specific GL module:
  117. GLHACK=-Dclear=__GLclear
  118. #gl glmodule.c cgensupport.c -I$(srcdir) $(GLHACK) -lgl -lX11
  119. # Pure module. Cannot be linked dynamically.
  120. # -DWITH_QUANTIFY, -DWITH_PURIFY, or -DWITH_ALL_PURE
  121. #WHICH_PURE_PRODUCTS=-DWITH_ALL_PURE
  122. #PURE_INCLS=-I/usr/local/include
  123. #PURE_STUBLIBS=-L/usr/local/lib -lpurify_stubs -lquantify_stubs
  124. #pure puremodule.c $(WHICH_PURE_PRODUCTS) $(PURE_INCLS) $(PURE_STUBLIBS)
  125. # Uncommenting the following line tells makesetup that all following
  126. # modules are to be built as shared libraries (see above for more
  127. # detail; also note that *static* reverses this effect):
  128. #*shared*
  129. # GNU readline. Unlike previous Python incarnations, GNU readline is
  130. # now incorporated in an optional module, configured in the Setup file
  131. # instead of by a configure script switch. You may have to insert a
  132. # -L option pointing to the directory where libreadline.* lives,
  133. # and you may have to change -ltermcap to -ltermlib or perhaps remove
  134. # it, depending on your system -- see the GNU readline instructions.
  135. # It's okay for this to be a shared library, too.
  136. #readline readline.c -lreadline -ltermcap
  137. # Modules that should always be present (non UNIX dependent):
  138. #array arraymodule.c # array objects
  139. #cmath cmathmodule.c _math.c # -lm # complex math library functions
  140. #math mathmodule.c _math.c # -lm # math library functions, e.g. sin()
  141. #_struct _struct.c # binary structure packing/unpacking
  142. #time timemodule.c # -lm # time operations and variables
  143. #operator operator.c # operator.add() and similar goodies
  144. #_testcapi _testcapimodule.c # Python C API test module
  145. #_random _randommodule.c # Random number generator
  146. #_collections _collectionsmodule.c # Container types
  147. #_heapq _heapqmodule.c # Heapq type
  148. #itertools itertoolsmodule.c # Functions creating iterators for efficient looping
  149. #strop stropmodule.c # String manipulations
  150. #_functools _functoolsmodule.c # Tools for working with functions and callable objects
  151. #_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c # elementtree accelerator
  152. #_pickle _pickle.c # pickle accelerator
  153. #datetime datetimemodule.c # date/time type
  154. #_bisect _bisectmodule.c # Bisection algorithms
  155. #unicodedata unicodedata.c # static Unicode character database
  156. # access to ISO C locale support
  157. #_locale _localemodule.c # -lintl
  158. # Standard I/O baseline
  159. #_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
  160. # Modules with some UNIX dependencies -- on by default:
  161. # (If you have a really backward UNIX, select and socket may not be
  162. # supported...)
  163. #fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
  164. #spwd spwdmodule.c # spwd(3)
  165. #grp grpmodule.c # grp(3)
  166. #select selectmodule.c # select(2); not on ancient System V
  167. # Memory-mapped files (also works on Win32).
  168. #mmap mmapmodule.c
  169. # CSV file helper
  170. #_csv _csv.c
  171. # Socket module helper for socket(2)
  172. #_socket socketmodule.c timemodule.c
  173. # Socket module helper for SSL support; you must comment out the other
  174. # socket line above, and possibly edit the SSL variable:
  175. #SSL=/usr/local/ssl
  176. #_ssl _ssl.c \
  177. # -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
  178. # -L$(SSL)/lib -lssl -lcrypto
  179. # The crypt module is now disabled by default because it breaks builds
  180. # on many systems (where -lcrypt is needed), e.g. Linux (I believe).
  181. #
  182. # First, look at Setup.config; configure may have set this for you.
  183. #crypt cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems
  184. # Some more UNIX dependent modules -- off by default, since these
  185. # are not supported by all UNIX systems:
  186. #nis nismodule.c -lnsl # Sun yellow pages -- not everywhere
  187. #termios termios.c # Steen Lumholt's termios module
  188. #resource resource.c # Jeremy Hylton's rlimit interface
  189. # Multimedia modules -- off by default.
  190. # These don't work for 64-bit platforms!!!
  191. # #993173 says audioop works on 64-bit platforms, though.
  192. # These represent audio samples or images as strings:
  193. #audioop audioop.c # Operations on audio samples
  194. #imageop imageop.c # Operations on images
  195. # Note that the _md5 and _sha modules are normally only built if the
  196. # system does not have the OpenSSL libs containing an optimized version.
  197. # The _md5 module implements the RSA Data Security, Inc. MD5
  198. # Message-Digest Algorithm, described in RFC 1321. The necessary files
  199. # md5.c and md5.h are included here.
  200. _md5 md5module.c md5.c
  201. # The _sha module implements the SHA checksum algorithms.
  202. # (NIST's Secure Hash Algorithms.)
  203. #_sha shamodule.c
  204. #_sha256 sha256module.c
  205. #_sha512 sha512module.c
  206. # SGI IRIX specific modules -- off by default.
  207. # These module work on any SGI machine:
  208. # *** gl must be enabled higher up in this file ***
  209. #fm fmmodule.c $(GLHACK) -lfm -lgl # Font Manager
  210. #sgi sgimodule.c # sgi.nap() and a few more
  211. # This module requires the header file
  212. # /usr/people/4Dgifts/iristools/include/izoom.h:
  213. #imgfile imgfile.c -limage -lgutil -lgl -lm # Image Processing Utilities
  214. # These modules require the Multimedia Development Option (I think):
  215. #al almodule.c -laudio # Audio Library
  216. #cd cdmodule.c -lcdaudio -lds -lmediad # CD Audio Library
  217. #cl clmodule.c -lcl -lawareaudio # Compression Library
  218. #sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11 # Starter Video
  219. # The FORMS library, by Mark Overmars, implements user interface
  220. # components such as dialogs and buttons using SGI's GL and FM
  221. # libraries. You must ftp the FORMS library separately from
  222. # ftp://ftp.cs.ruu.nl/pub/SGI/FORMS. It was tested with FORMS 2.2a.
  223. # NOTE: if you want to be able to use FORMS and curses simultaneously
  224. # (or both link them statically into the same binary), you must
  225. # compile all of FORMS with the cc option "-Dclear=__GLclear".
  226. # The FORMS variable must point to the FORMS subdirectory of the forms
  227. # toplevel directory:
  228. #FORMS=/ufs/guido/src/forms/FORMS
  229. #fl flmodule.c -I$(FORMS) $(GLHACK) $(FORMS)/libforms.a -lfm -lgl
  230. # SunOS specific modules -- off by default:
  231. #sunaudiodev sunaudiodev.c
  232. # A Linux specific module -- off by default; this may also work on
  233. # some *BSDs.
  234. #linuxaudiodev linuxaudiodev.c
  235. # George Neville-Neil's timing module:
  236. #timing timingmodule.c
  237. # The _tkinter module.
  238. #
  239. # The command for _tkinter is long and site specific. Please
  240. # uncomment and/or edit those parts as indicated. If you don't have a
  241. # specific extension (e.g. Tix or BLT), leave the corresponding line
  242. # commented out. (Leave the trailing backslashes in! If you
  243. # experience strange errors, you may want to join all uncommented
  244. # lines and remove the backslashes -- the backslash interpretation is
  245. # done by the shell's "read" command and it may not be implemented on
  246. # every system.
  247. # *** Always uncomment this (leave the leading underscore in!):
  248. # _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
  249. # *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
  250. # -L/usr/local/lib \
  251. # *** Uncomment and edit to reflect where your Tcl/Tk headers are:
  252. # -I/usr/local/include \
  253. # *** Uncomment and edit to reflect where your X11 header files are:
  254. # -I/usr/X11R6/include \
  255. # *** Or uncomment this for Solaris:
  256. # -I/usr/openwin/include \
  257. # *** Uncomment and edit for Tix extension only:
  258. # -DWITH_TIX -ltix8.1.8.2 \
  259. # *** Uncomment and edit for BLT extension only:
  260. # -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
  261. # *** Uncomment and edit for PIL (TkImaging) extension only:
  262. # (See http://www.pythonware.com/products/pil/ for more info)
  263. # -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \
  264. # *** Uncomment and edit for TOGL extension only:
  265. # -DWITH_TOGL togl.c \
  266. # *** Uncomment and edit to reflect your Tcl/Tk versions:
  267. # -ltk8.2 -ltcl8.2 \
  268. # *** Uncomment and edit to reflect where your X11 libraries are:
  269. # -L/usr/X11R6/lib \
  270. # *** Or uncomment this for Solaris:
  271. # -L/usr/openwin/lib \
  272. # *** Uncomment these for TOGL extension only:
  273. # -lGL -lGLU -lXext -lXmu \
  274. # *** Uncomment for AIX:
  275. # -lld \
  276. # *** Always uncomment this; X11 libraries to link with:
  277. # -lX11
  278. # Lance Ellinghaus's syslog module
  279. #syslog syslogmodule.c # syslog daemon interface
  280. # Curses support, requring the System V version of curses, often
  281. # provided by the ncurses library. e.g. on Linux, link with -lncurses
  282. # instead of -lcurses).
  283. #
  284. # First, look at Setup.config; configure may have set this for you.
  285. #_curses _cursesmodule.c -lcurses -ltermcap
  286. # Wrapper for the panel library that's part of ncurses and SYSV curses.
  287. #_curses_panel _curses_panel.c -lpanel -lncurses
  288. # Generic (SunOS / SVR4) dynamic loading module.
  289. # This is not needed for dynamic loading of Python modules --
  290. # it is a highly experimental and dangerous device for calling
  291. # *arbitrary* C functions in *arbitrary* shared libraries:
  292. #dl dlmodule.c
  293. # Modules that provide persistent dictionary-like semantics. You will
  294. # probably want to arrange for at least one of them to be available on
  295. # your machine, though none are defined by default because of library
  296. # dependencies. The Python module anydbm.py provides an
  297. # implementation independent wrapper for these; dumbdbm.py provides
  298. # similar functionality (but slower of course) implemented in Python.
  299. # The standard Unix dbm module has been moved to Setup.config so that
  300. # it will be compiled as a shared library by default. Compiling it as
  301. # a built-in module causes conflicts with the pybsddb3 module since it
  302. # creates a static dependency on an out-of-date version of db.so.
  303. #
  304. # First, look at Setup.config; configure may have set this for you.
  305. #dbm dbmmodule.c # dbm(3) may require -lndbm or similar
  306. # Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm:
  307. #
  308. # First, look at Setup.config; configure may have set this for you.
  309. #gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
  310. # Sleepycat Berkeley DB interface.
  311. #
  312. # This requires the Sleepycat DB code, see http://www.sleepycat.com/
  313. # The earliest supported version of that library is 3.0, the latest
  314. # supported version is 4.0 (4.1 is specifically not supported, as that
  315. # changes the semantics of transactional databases). A list of available
  316. # releases can be found at
  317. #
  318. # http://www.sleepycat.com/update/index.html
  319. #
  320. # Edit the variables DB and DBLIBVERto point to the db top directory
  321. # and the subdirectory of PORT where you built it.
  322. #DB=/usr/local/BerkeleyDB.4.0
  323. #DBLIBVER=4.0
  324. #DBINC=$(DB)/include
  325. #DBLIB=$(DB)/lib
  326. #_bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb-$(DBLIBVER)
  327. # Historical Berkeley DB 1.85
  328. #
  329. # This module is deprecated; the 1.85 version of the Berkeley DB library has
  330. # bugs that can cause data corruption. If you can, use later versions of the
  331. # library instead, available from <http://www.sleepycat.com/>.
  332. #DB=/depot/sundry/src/berkeley-db/db.1.85
  333. #DBPORT=$(DB)/PORT/irix.5.3
  334. #bsddb185 bsddbmodule.c -I$(DBPORT)/include -I$(DBPORT) $(DBPORT)/libdb.a
  335. # Helper module for various ascii-encoders
  336. #binascii binascii.c
  337. # Fred Drake's interface to the Python parser
  338. #parser parsermodule.c
  339. # cStringIO and cPickle
  340. #cStringIO cStringIO.c
  341. #cPickle cPickle.c
  342. # Lee Busby's SIGFPE modules.
  343. # The library to link fpectl with is platform specific.
  344. # Choose *one* of the options below for fpectl:
  345. # For SGI IRIX (tested on 5.3):
  346. #fpectl fpectlmodule.c -lfpe
  347. # For Solaris with SunPro compiler (tested on Solaris 2.5 with SunPro C 4.2):
  348. # (Without the compiler you don't have -lsunmath.)
  349. #fpectl fpectlmodule.c -R/opt/SUNWspro/lib -lsunmath -lm
  350. # For other systems: see instructions in fpectlmodule.c.
  351. #fpectl fpectlmodule.c ...
  352. # Test module for fpectl. No extra libraries needed.
  353. #fpetest fpetestmodule.c
  354. # Andrew Kuchling's zlib module.
  355. # This require zlib 1.1.3 (or later).
  356. # See http://www.gzip.org/zlib/
  357. #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
  358. # Interface to the Expat XML parser
  359. #
  360. # Expat was written by James Clark and is now maintained by a group of
  361. # developers on SourceForge; see www.libexpat.org for more
  362. # information. The pyexpat module was written by Paul Prescod after a
  363. # prototype by Jack Jansen. Source of Expat 1.95.2 is included in
  364. # Modules/expat/. Usage of a system shared libexpat.so/expat.dll is
  365. # not advised.
  366. #
  367. # More information on Expat can be found at www.libexpat.org.
  368. #
  369. #pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI
  370. # Hye-Shik Chang's CJKCodecs
  371. # multibytecodec is required for all the other CJK codec modules
  372. #_multibytecodec cjkcodecs/multibytecodec.c
  373. #_codecs_cn cjkcodecs/_codecs_cn.c
  374. #_codecs_hk cjkcodecs/_codecs_hk.c
  375. #_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
  376. #_codecs_jp cjkcodecs/_codecs_jp.c
  377. #_codecs_kr cjkcodecs/_codecs_kr.c
  378. #_codecs_tw cjkcodecs/_codecs_tw.c
  379. # Example -- included for reference only:
  380. # xx xxmodule.c
  381. # Another example -- the 'xxsubtype' module shows C-level subtyping in action
  382. xxsubtype xxsubtype.c