Setup.stdlib 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. # -*- makefile -*-
  2. #
  3. # This file is autogenerated from Modules/Setup.stdlib.in.
  4. #
  5. # The file is not used by default yet. For testing do:
  6. #
  7. # ln -sfr Modules/Setup.stdlib Modules/Setup.local
  8. #
  9. # * @MODULE_{NAME}_TRUE@ is removed when configure detects all build
  10. # dependencies for a module. Otherwise the template variable is replaced
  11. # by a comment "#" and the module is skipped.
  12. # * Module lines without any compiler and linker flags automatically use
  13. # $(MODULE_{NAME}_CFLAGS) and $(MODULE_{NAME}_LDFLAGS). These flags are
  14. # generated by PY_STDLIB_MOD macro.
  15. # * All source files automatically depend on $(PYTHON_HEADERS) and
  16. # $(MODULE_{NAME}_DEPS).
  17. #
  18. # See Modules/Setup and Modules/makesetup
  19. #
  20. # Build modules statically or as shared extensions
  21. # *shared* / *static*
  22. *shared*
  23. ############################################################################
  24. # Modules that should always be present (POSIX and Windows):
  25. array arraymodule.c
  26. _asyncio _asynciomodule.c
  27. _bisect _bisectmodule.c
  28. _contextvars _contextvarsmodule.c
  29. _csv _csv.c
  30. _heapq _heapqmodule.c
  31. _json _json.c
  32. _lsprof _lsprof.c rotatingtree.c
  33. _opcode _opcode.c
  34. _pickle _pickle.c
  35. _queue _queuemodule.c
  36. _random _randommodule.c
  37. _struct _struct.c
  38. _typing _typingmodule.c
  39. _xxsubinterpreters _xxsubinterpretersmodule.c
  40. _zoneinfo _zoneinfo.c
  41. # needs libm
  42. audioop audioop.c
  43. math mathmodule.c
  44. cmath cmathmodule.c
  45. _statistics _statisticsmodule.c
  46. # needs libm and on some platforms librt
  47. _datetime _datetimemodule.c
  48. # _decimal uses libmpdec
  49. # either static libmpdec.a from Modules/_decimal/libmpdec or libmpdec.so
  50. # with ./configure --with-system-libmpdec
  51. _decimal _decimal/_decimal.c
  52. # compression libs and binascii (optional CRC32 from zlib)
  53. # bindings need -lbz2, -lz, or -llzma, respectively
  54. binascii binascii.c
  55. #_bz2 _bz2module.c
  56. #_lzma _lzmamodule.c
  57. zlib zlibmodule.c
  58. # dbm/gdbm
  59. # dbm needs either libndbm, libgdbm_compat, or libdb 5.x
  60. #@MODULE__DBM_TRUE@_dbm _dbmmodule.c
  61. # gdbm module needs -lgdbm
  62. #_gdbm _gdbmmodule.c
  63. # needs -lreadline or -leditline, sometimes termcap, termlib, or tinfo
  64. #@MODULE_READLINE_TRUE@readline readline.c
  65. # hashing builtins, can be disabled with --without-builtin-hashlib-hashes
  66. _md5 md5module.c
  67. _sha1 sha1module.c
  68. _sha256 sha256module.c
  69. _sha512 sha512module.c
  70. _sha3 _sha3/sha3module.c
  71. _blake2 _blake2/blake2module.c _blake2/blake2b_impl.c _blake2/blake2s_impl.c
  72. ############################################################################
  73. # XML and text
  74. # pyexpat module uses libexpat
  75. # either static libexpat.a from Modules/expat or libexpat.so with
  76. # ./configure --with-system-expat
  77. pyexpat pyexpat.c
  78. # _elementtree libexpat via CAPI hook in pyexpat.
  79. _elementtree _elementtree.c
  80. _codecs_cn cjkcodecs/_codecs_cn.c
  81. _codecs_hk cjkcodecs/_codecs_hk.c
  82. _codecs_iso2022 cjkcodecs/_codecs_iso2022.c
  83. _codecs_jp cjkcodecs/_codecs_jp.c
  84. _codecs_kr cjkcodecs/_codecs_kr.c
  85. _codecs_tw cjkcodecs/_codecs_tw.c
  86. _multibytecodec cjkcodecs/multibytecodec.c
  87. unicodedata unicodedata.c
  88. ############################################################################
  89. # Modules with some UNIX dependencies
  90. #
  91. # needs -lcrypt on some systems
  92. #_crypt _cryptmodule.c
  93. fcntl fcntlmodule.c
  94. grp grpmodule.c
  95. mmap mmapmodule.c
  96. # FreeBSD: nis/yp APIs are in libc
  97. # Linux: glibc has deprecated SUN RPC, APIs are in libnsl and libtirpc (bpo-32521)
  98. #nis nismodule.c
  99. # needs sys/soundcard.h or linux/soundcard.h (Linux, FreeBSD)
  100. ossaudiodev ossaudiodev.c
  101. _posixsubprocess _posixsubprocess.c
  102. resource resource.c
  103. select selectmodule.c
  104. _socket socketmodule.c
  105. # AIX has shadow passwords, but does not provide getspent API
  106. #spwd spwdmodule.c
  107. syslog syslogmodule.c
  108. termios termios.c
  109. # multiprocessing
  110. #_posixshmem _multiprocessing/posixshmem.c
  111. _multiprocessing _multiprocessing/multiprocessing.c _multiprocessing/semaphore.c
  112. ############################################################################
  113. # Modules with third party dependencies
  114. #
  115. # needs -lffi and -ldl
  116. #@MODULE__CTYPES_TRUE@_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c
  117. # needs -lncurses, -lncursesw or -lcurses, sometimes -ltermcap
  118. #@MODULE__CURSES_TRUE@_curses _cursesmodule.c
  119. # needs -lncurses and -lpanel
  120. #@MODULE__CURSES_PANEL_TRUE@_curses_panel _curses_panel.c
  121. #_sqlite3 _sqlite/blob.c _sqlite/connection.c _sqlite/cursor.c _sqlite/microprotocols.c _sqlite/module.c _sqlite/prepare_protocol.c _sqlite/row.c _sqlite/statement.c _sqlite/util.c
  122. # needs -lssl and -lcrypt
  123. _ssl _ssl.c
  124. # needs -lcrypt
  125. _hashlib _hashopenssl.c
  126. # Linux: -luuid, BSD/AIX: libc's uuid_create()
  127. #_uuid _uuidmodule.c
  128. #_tkinter _tkinter.c tkappinit.c
  129. ############################################################################
  130. # macOS specific modules
  131. # _scproxy needs SystemConfiguration and CoreFoundation framework
  132. #_scproxy _scproxy.c
  133. ############################################################################
  134. # Test modules
  135. _xxtestfuzz _xxtestfuzz/_xxtestfuzz.c _xxtestfuzz/fuzzer.c
  136. _testbuffer _testbuffer.c
  137. _testinternalcapi _testinternalcapi.c
  138. _testcapi _testcapimodule.c
  139. _testclinic _testclinic.c
  140. # Some testing modules MUST be built as shared libraries.
  141. *shared*
  142. _testimportmultiple _testimportmultiple.c
  143. _testmultiphase _testmultiphase.c
  144. _ctypes_test _ctypes/_ctypes_test.c
  145. # Limited API template modules; must be built as shared modules.
  146. xxlimited xxlimited.c
  147. xxlimited_35 xxlimited_35.c