Setup 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  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. Note that Makefile.pre is created from Makefile.pre.in
  5. # by the toplevel configure script.
  6. # (VPATH notes: Setup and Makefile.pre are in the build directory, as
  7. # are Makefile and config.c; the *.in files are in the source directory.)
  8. # Each line in this file describes one or more optional modules.
  9. # Modules configured here will not be compiled by the setup.py script,
  10. # so the file can be used to override setup.py's behavior.
  11. # Tag lines containing just the word "*static*", "*shared*" or "*disabled*"
  12. # (without the quotes but with the stars) are used to tag the following module
  13. # descriptions. Tag lines may alternate throughout this file. Modules are
  14. # built statically when they are preceded by a "*static*" tag line or when
  15. # there is no tag line between the start of the file and the module
  16. # description. Modules are built as a shared library when they are preceded by
  17. # a "*shared*" tag line. Modules are not built at all, not by the Makefile,
  18. # nor by the setup.py script, when they are preceded by a "*disabled*" tag
  19. # line.
  20. # Lines have the following structure:
  21. #
  22. # <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
  23. #
  24. # <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
  25. # <cpparg> is anything starting with -I, -D, -U or -C
  26. # <library> is anything ending in .a or beginning with -l or -L
  27. # <module> is anything else but should be a valid Python
  28. # identifier (letters, digits, underscores, beginning with non-digit)
  29. #
  30. # (As the makesetup script changes, it may recognize some other
  31. # arguments as well, e.g. *.so and *.sl as libraries. See the big
  32. # case statement in the makesetup script.)
  33. #
  34. # Lines can also have the form
  35. #
  36. # <name> = <value>
  37. #
  38. # which defines a Make variable definition inserted into Makefile.in
  39. #
  40. # The build process works like this:
  41. #
  42. # 1. Build all modules that are declared as static in Modules/Setup,
  43. # combine them into libpythonxy.a, combine that into python.
  44. # 2. Build all modules that are listed as shared in Modules/Setup.
  45. # 3. Invoke setup.py. That builds all modules that
  46. # a) are not builtin, and
  47. # b) are not listed in Modules/Setup, and
  48. # c) can be build on the target
  49. #
  50. # Therefore, modules declared to be shared will not be
  51. # included in the config.c file, nor in the list of objects to be
  52. # added to the library archive, and their linker options won't be
  53. # added to the linker options. Rules to create their .o files and
  54. # their shared libraries will still be added to the Makefile, and
  55. # their names will be collected in the Make variable SHAREDMODS. This
  56. # is used to build modules as shared libraries. (They can be
  57. # installed using "make sharedinstall", which is implied by the
  58. # toplevel "make install" target.) (For compatibility,
  59. # *noconfig* has the same effect as *shared*.)
  60. #
  61. # NOTE: As a standard policy, as many modules as can be supported by a
  62. # platform should be present. The distribution comes with all modules
  63. # enabled that are supported by most platforms and don't require you
  64. # to ftp sources from elsewhere.
  65. # Some special rules to define PYTHONPATH.
  66. # Edit the definitions below to indicate which options you are using.
  67. # Don't add any whitespace or comments!
  68. # Directories where library files get installed.
  69. # DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
  70. DESTLIB=$(LIBDEST)
  71. MACHDESTLIB=$(BINLIBDEST)
  72. # NOTE: all the paths are now relative to the prefix that is computed
  73. # at run time!
  74. # Standard path -- don't edit.
  75. # No leading colon since this is the first entry.
  76. # Empty since this is now just the runtime prefix.
  77. DESTPATH=
  78. # Site specific path components -- should begin with : if non-empty
  79. SITEPATH=
  80. # Standard path components for test modules
  81. TESTPATH=
  82. COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)
  83. PYTHONPATH=$(COREPYTHONPATH)
  84. # The modules listed here can't be built as shared libraries for
  85. # various reasons; therefore they are listed here instead of in the
  86. # normal order.
  87. # This only contains the minimal set of modules required to run the
  88. # setup.py script in the root of the Python source tree.
  89. posix -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal posixmodule.c # posix (UNIX) system calls
  90. errno errnomodule.c # posix (UNIX) errno values
  91. pwd pwdmodule.c # this is needed to find out the user's home dir
  92. # if $HOME is not set
  93. _sre _sre.c # Fredrik Lundh's new regular expressions
  94. _codecs _codecsmodule.c # access to the builtin codecs and codec registry
  95. _weakref _weakref.c # weak references
  96. _functools -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal _functoolsmodule.c # Tools for working with functions and callable objects
  97. _operator _operator.c # operator.add() and similar goodies
  98. _collections _collectionsmodule.c # Container types
  99. _abc _abc.c # Abstract base classes
  100. itertools itertoolsmodule.c # Functions creating iterators for efficient looping
  101. atexit atexitmodule.c # Register functions to be run at interpreter-shutdown
  102. _signal -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal signalmodule.c
  103. _stat _stat.c # stat.h interface
  104. time -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal timemodule.c # -lm # time operations and variables
  105. _thread -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal _threadmodule.c # low-level threading interface
  106. # access to ISO C locale support
  107. _locale -DPy_BUILD_CORE_BUILTIN _localemodule.c # -lintl
  108. # Standard I/O baseline
  109. _io -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal -I$(srcdir)/Modules/_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c
  110. # faulthandler module
  111. faulthandler faulthandler.c
  112. # debug tool to trace memory blocks allocated by Python
  113. #
  114. # bpo-35053: The module must be builtin since _Py_NewReference()
  115. # can call _PyTraceMalloc_NewReference().
  116. _tracemalloc _tracemalloc.c
  117. # PEG-based parser module -- slated to be *the* parser
  118. _peg_parser _peg_parser.c
  119. # The rest of the modules listed in this file are all commented out by
  120. # default. Usually they can be detected and built as dynamically
  121. # loaded modules by the new setup.py script added in Python 2.1. If
  122. # you're on a platform that doesn't support dynamic loading, want to
  123. # compile modules statically into the Python binary, or need to
  124. # specify some odd set of compiler switches, you can uncomment the
  125. # appropriate lines below.
  126. # ======================================================================
  127. # The Python symtable module depends on .h files that setup.py doesn't track
  128. _symtable symtablemodule.c
  129. # Uncommenting the following line tells makesetup that all following
  130. # modules are to be built as shared libraries (see above for more
  131. # detail; also note that *static* or *disabled* cancels this effect):
  132. #*shared*
  133. # GNU readline. Unlike previous Python incarnations, GNU readline is
  134. # now incorporated in an optional module, configured in the Setup file
  135. # instead of by a configure script switch. You may have to insert a
  136. # -L option pointing to the directory where libreadline.* lives,
  137. # and you may have to change -ltermcap to -ltermlib or perhaps remove
  138. # it, depending on your system -- see the GNU readline instructions.
  139. # It's okay for this to be a shared library, too.
  140. #readline readline.c -lreadline -ltermcap
  141. # Modules that should always be present (non UNIX dependent):
  142. #array arraymodule.c # array objects
  143. #cmath cmathmodule.c _math.c -DPy_BUILD_CORE_MODULE # -lm # complex math library functions
  144. #math mathmodule.c _math.c -DPy_BUILD_CORE_MODULE # -lm # math library functions, e.g. sin()
  145. #_contextvars _contextvarsmodule.c # Context Variables
  146. #_struct _struct.c # binary structure packing/unpacking
  147. #_weakref _weakref.c # basic weak reference support
  148. #_testcapi _testcapimodule.c # Python C API test module
  149. #_testinternalcapi _testinternalcapi.c -I$(srcdir)/Include/internal -DPy_BUILD_CORE_MODULE # Python internal C API test module
  150. #_random _randommodule.c -DPy_BUILD_CORE_MODULE # Random number generator
  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 # datetime accelerator
  154. #_zoneinfo _zoneinfo.c # zoneinfo accelerator
  155. #_bisect _bisectmodule.c # Bisection algorithms
  156. #_heapq _heapqmodule.c # Heap queue algorithm
  157. #_asyncio _asynciomodule.c # Fast asyncio Future
  158. #_json -I$(srcdir)/Include/internal -DPy_BUILD_CORE_BUILTIN _json.c # _json speedups
  159. #_statistics _statisticsmodule.c # statistics accelerator
  160. #unicodedata unicodedata.c # static Unicode character database
  161. # Modules with some UNIX dependencies -- on by default:
  162. # (If you have a really backward UNIX, select and socket may not be
  163. # supported...)
  164. #fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
  165. #spwd spwdmodule.c # spwd(3)
  166. #grp grpmodule.c # grp(3)
  167. #select selectmodule.c # select(2); not on ancient System V
  168. # Memory-mapped files (also works on Win32).
  169. #mmap mmapmodule.c
  170. # CSV file helper
  171. #_csv _csv.c
  172. # Socket module helper for socket(2)
  173. #_socket socketmodule.c
  174. # Socket module helper for SSL support; you must comment out the other
  175. # socket line above, and possibly edit the SSL variable:
  176. #SSL=/usr/local/ssl
  177. #_ssl _ssl.c \
  178. # -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
  179. # -L$(SSL)/lib -lssl -lcrypto
  180. # The crypt module is now disabled by default because it breaks builds
  181. # on many systems (where -lcrypt is needed), e.g. Linux (I believe).
  182. #_crypt _cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems
  183. # Some more UNIX dependent modules -- off by default, since these
  184. # are not supported by all UNIX systems:
  185. #nis nismodule.c -lnsl # Sun yellow pages -- not everywhere
  186. #termios termios.c # Steen Lumholt's termios module
  187. #resource resource.c # Jeremy Hylton's rlimit interface
  188. #_posixsubprocess _posixsubprocess.c # POSIX subprocess module helper
  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. # Note that the _md5 and _sha modules are normally only built if the
  195. # system does not have the OpenSSL libs containing an optimized version.
  196. # The _md5 module implements the RSA Data Security, Inc. MD5
  197. # Message-Digest Algorithm, described in RFC 1321.
  198. #_md5 md5module.c
  199. # The _sha module implements the SHA checksum algorithms.
  200. # (NIST's Secure Hash Algorithms.)
  201. #_sha1 sha1module.c
  202. #_sha256 sha256module.c -DPy_BUILD_CORE_BUILTIN
  203. #_sha512 sha512module.c -DPy_BUILD_CORE_BUILTIN
  204. #_sha3 _sha3/sha3module.c
  205. # _blake module
  206. #_blake2 _blake2/blake2module.c _blake2/blake2b_impl.c _blake2/blake2s_impl.c
  207. # The _tkinter module.
  208. #
  209. # The command for _tkinter is long and site specific. Please
  210. # uncomment and/or edit those parts as indicated. If you don't have a
  211. # specific extension (e.g. Tix or BLT), leave the corresponding line
  212. # commented out. (Leave the trailing backslashes in! If you
  213. # experience strange errors, you may want to join all uncommented
  214. # lines and remove the backslashes -- the backslash interpretation is
  215. # done by the shell's "read" command and it may not be implemented on
  216. # every system.
  217. # *** Always uncomment this (leave the leading underscore in!):
  218. # _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
  219. # *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
  220. # -L/usr/local/lib \
  221. # *** Uncomment and edit to reflect where your Tcl/Tk headers are:
  222. # -I/usr/local/include \
  223. # *** Uncomment and edit to reflect where your X11 header files are:
  224. # -I/usr/X11R6/include \
  225. # *** Or uncomment this for Solaris:
  226. # -I/usr/openwin/include \
  227. # *** Uncomment and edit for Tix extension only:
  228. # -DWITH_TIX -ltix8.1.8.2 \
  229. # *** Uncomment and edit for BLT extension only:
  230. # -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
  231. # *** Uncomment and edit for PIL (TkImaging) extension only:
  232. # (See http://www.pythonware.com/products/pil/ for more info)
  233. # -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \
  234. # *** Uncomment and edit for TOGL extension only:
  235. # -DWITH_TOGL togl.c \
  236. # *** Uncomment and edit to reflect your Tcl/Tk versions:
  237. # -ltk8.2 -ltcl8.2 \
  238. # *** Uncomment and edit to reflect where your X11 libraries are:
  239. # -L/usr/X11R6/lib \
  240. # *** Or uncomment this for Solaris:
  241. # -L/usr/openwin/lib \
  242. # *** Uncomment these for TOGL extension only:
  243. # -lGL -lGLU -lXext -lXmu \
  244. # *** Uncomment for AIX:
  245. # -lld \
  246. # *** Always uncomment this; X11 libraries to link with:
  247. # -lX11
  248. # Lance Ellinghaus's syslog module
  249. #syslog syslogmodule.c # syslog daemon interface
  250. # Curses support, requiring the System V version of curses, often
  251. # provided by the ncurses library. e.g. on Linux, link with -lncurses
  252. # instead of -lcurses).
  253. #_curses _cursesmodule.c -lcurses -ltermcap
  254. # Wrapper for the panel library that's part of ncurses and SYSV curses.
  255. #_curses_panel _curses_panel.c -lpanel -lncurses
  256. # Modules that provide persistent dictionary-like semantics. You will
  257. # probably want to arrange for at least one of them to be available on
  258. # your machine, though none are defined by default because of library
  259. # dependencies. The Python module dbm/__init__.py provides an
  260. # implementation independent wrapper for these; dbm/dumb.py provides
  261. # similar functionality (but slower of course) implemented in Python.
  262. #_dbm _dbmmodule.c # dbm(3) may require -lndbm or similar
  263. # Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm:
  264. #_gdbm _gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
  265. # Helper module for various ascii-encoders
  266. #binascii binascii.c
  267. # Fred Drake's interface to the Python parser
  268. #parser parsermodule.c
  269. # Andrew Kuchling's zlib module.
  270. # This require zlib 1.1.3 (or later).
  271. # See http://www.gzip.org/zlib/
  272. #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
  273. # Interface to the Expat XML parser
  274. # More information on Expat can be found at www.libexpat.org.
  275. #
  276. #pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DXML_POOR_ENTROPY -DUSE_PYEXPAT_CAPI
  277. # Hye-Shik Chang's CJKCodecs
  278. # multibytecodec is required for all the other CJK codec modules
  279. #_multibytecodec cjkcodecs/multibytecodec.c
  280. #_codecs_cn cjkcodecs/_codecs_cn.c
  281. #_codecs_hk cjkcodecs/_codecs_hk.c
  282. #_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
  283. #_codecs_jp cjkcodecs/_codecs_jp.c
  284. #_codecs_kr cjkcodecs/_codecs_kr.c
  285. #_codecs_tw cjkcodecs/_codecs_tw.c
  286. # Example -- included for reference only:
  287. # xx xxmodule.c
  288. # Another example -- the 'xxsubtype' module shows C-level subtyping in action
  289. xxsubtype xxsubtype.c
  290. # Uncommenting the following line tells makesetup that all following modules
  291. # are not built (see above for more detail).
  292. #
  293. #*disabled*
  294. #
  295. #_sqlite3 _tkinter _curses pyexpat
  296. #_codecs_jp _codecs_kr _codecs_tw unicodedata