2021-11-18 21:40:01 +08:00
|
|
|
# -*- makefile -*-
|
|
|
|
#
|
|
|
|
# This file is autogenerated from Modules/Setup.stdlib.in.
|
|
|
|
#
|
|
|
|
|
|
|
|
# The file is not used by default yet. For testing do:
|
|
|
|
#
|
|
|
|
# ln -sfr Modules/Setup.stdlib Modules/Setup.local
|
|
|
|
#
|
|
|
|
|
|
|
|
# * @MODULE_{NAME}_TRUE@ is removed when configure detects all build
|
|
|
|
# dependencies for a module. Otherwise the template variable is replaced
|
|
|
|
# by a comment "#" and the module is skipped.
|
|
|
|
# * Module lines without any compiler and linker flags automatically use
|
|
|
|
# $(MODULE_{NAME}_CFLAGS) and $(MODULE_{NAME}_LDFLAGS). These flags are
|
|
|
|
# generated by PY_STDLIB_MOD macro.
|
|
|
|
# * All source files automatically depend on $(PYTHON_HEADERS) and
|
|
|
|
# $(MODULE_{NAME}_DEPS).
|
|
|
|
#
|
|
|
|
# See Modules/Setup and Modules/makesetup
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# Build modules statically or as shared extensions
|
|
|
|
*shared*
|
|
|
|
# *static*
|
|
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Modules that should always be present (POSIX and Windows):
|
2021-11-22 16:05:36 +08:00
|
|
|
@MODULE_ARRAY_TRUE@array arraymodule.c
|
2021-11-22 17:57:50 +08:00
|
|
|
@MODULE__ASYNCIO_TRUE@_asyncio _asynciomodule.c
|
2021-11-22 16:45:41 +08:00
|
|
|
@MODULE__BISECT_TRUE@_bisect _bisectmodule.c
|
2021-11-22 16:05:36 +08:00
|
|
|
@MODULE__CONTEXTVARS_TRUE@_contextvars _contextvarsmodule.c
|
2021-11-22 22:37:25 +08:00
|
|
|
@MODULE__CSV_TRUE@_csv _csv.c
|
2021-11-22 16:45:41 +08:00
|
|
|
@MODULE__HEAPQ_TRUE@_heapq _heapqmodule.c
|
|
|
|
@MODULE__JSON_TRUE@_json _json.c
|
2021-11-22 17:57:50 +08:00
|
|
|
@MODULE__LSPROF_TRUE@_lsprof _lsprof.c rotatingtree.c
|
|
|
|
@MODULE__OPCODE_TRUE@_opcode _opcode.c
|
2021-11-22 16:45:41 +08:00
|
|
|
@MODULE__PICKLE_TRUE@_pickle _pickle.c
|
2021-11-22 17:57:50 +08:00
|
|
|
@MODULE__QUEUE_TRUE@_queue _queuemodule.c
|
2021-11-22 16:45:41 +08:00
|
|
|
@MODULE__RANDOM_TRUE@_random _randommodule.c
|
2021-11-22 22:58:43 +08:00
|
|
|
@MODULE__STRUCT_TRUE@_struct _struct.c
|
2021-11-22 17:57:50 +08:00
|
|
|
@MODULE__TYPING_TRUE@_typing _typingmodule.c
|
2021-11-22 22:18:41 +08:00
|
|
|
@MODULE__XXSUBINTERPRETERS_TRUE@_xxsubinterpreters _xxsubinterpretersmodule.c
|
2021-11-22 16:45:41 +08:00
|
|
|
@MODULE__ZONEINFO_TRUE@_zoneinfo _zoneinfo.c
|
2021-11-22 16:05:36 +08:00
|
|
|
|
|
|
|
# needs libm
|
2021-11-22 22:37:25 +08:00
|
|
|
@MODULE_AUDIOOP_TRUE@audioop audioop.c
|
2021-11-22 16:05:36 +08:00
|
|
|
@MODULE_MATH_TRUE@math mathmodule.c
|
|
|
|
@MODULE_CMATH_TRUE@cmath cmathmodule.c
|
2021-11-22 17:57:50 +08:00
|
|
|
@MODULE__STATISTICS_TRUE@_statistics _statisticsmodule.c
|
2021-11-18 21:40:01 +08:00
|
|
|
|
2021-11-19 23:40:57 +08:00
|
|
|
# needs libm and on some platforms librt
|
|
|
|
@MODULE__DATETIME_TRUE@_datetime _datetimemodule.c
|
|
|
|
|
2021-11-18 21:40:01 +08:00
|
|
|
# _decimal uses libmpdec
|
|
|
|
# either static libmpdec.a from Modules/_decimal/libmpdec or libmpdec.so
|
|
|
|
# with ./configure --with-system-libmpdec
|
|
|
|
@MODULE__DECIMAL_TRUE@_decimal _decimal/_decimal.c
|
|
|
|
|
2021-11-22 21:52:29 +08:00
|
|
|
# compression libs and binascii (optional CRC32 from zlib)
|
|
|
|
# bindings need -lbz2, -lz, or -llzma, respectively
|
|
|
|
@MODULE_BINASCII_TRUE@binascii binascii.c
|
|
|
|
@MODULE__BZ2_TRUE@_bz2 _bz2module.c
|
|
|
|
@MODULE__LZMA_TRUE@_lzma _lzmamodule.c
|
|
|
|
@MODULE_ZLIB_TRUE@zlib zlibmodule.c
|
|
|
|
|
2021-11-24 05:58:38 +08:00
|
|
|
# dbm/gdbm
|
|
|
|
# dbm needs either libndbm, libgdbm_compat, or libdb 5.x
|
|
|
|
# gdbm module needs -lgdbm
|
|
|
|
@MODULE__GDBM_TRUE@_gdbm _gdbmmodule.c
|
|
|
|
|
2021-11-20 03:20:32 +08:00
|
|
|
# hashing builtins, can be disabled with --without-builtin-hashlib-hashes
|
|
|
|
@MODULE__MD5_TRUE@_md5 md5module.c
|
|
|
|
@MODULE__SHA1_TRUE@_sha1 sha1module.c
|
|
|
|
@MODULE__SHA256_TRUE@_sha256 sha256module.c
|
|
|
|
@MODULE__SHA512_TRUE@_sha512 sha512module.c
|
|
|
|
@MODULE__SHA3_TRUE@_sha3 _sha3/sha3module.c
|
|
|
|
@MODULE__BLAKE2_TRUE@_blake2 _blake2/blake2module.c _blake2/blake2b_impl.c _blake2/blake2s_impl.c
|
2021-11-18 21:40:01 +08:00
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# XML and text
|
|
|
|
|
|
|
|
# pyexpat module uses libexpat
|
|
|
|
# either static libexpat.a from Modules/expat or libexpat.so with
|
|
|
|
# ./configure --with-system-expat
|
|
|
|
@MODULE_PYEXPAT_TRUE@pyexpat pyexpat.c
|
|
|
|
|
|
|
|
# _elementtree libexpat via CAPI hook in pyexpat.
|
|
|
|
@MODULE__ELEMENTTREE_TRUE@_elementtree _elementtree.c
|
|
|
|
|
2021-11-21 21:08:47 +08:00
|
|
|
@MODULE__CODECS_CN_TRUE@_codecs_cn cjkcodecs/_codecs_cn.c
|
|
|
|
@MODULE__CODECS_HK_TRUE@_codecs_hk cjkcodecs/_codecs_hk.c
|
|
|
|
@MODULE__CODECS_ISO2022_TRUE@_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
|
|
|
|
@MODULE__CODECS_JP_TRUE@_codecs_jp cjkcodecs/_codecs_jp.c
|
|
|
|
@MODULE__CODECS_KR_TRUE@_codecs_kr cjkcodecs/_codecs_kr.c
|
|
|
|
@MODULE__CODECS_TW_TRUE@_codecs_tw cjkcodecs/_codecs_tw.c
|
|
|
|
@MODULE__MULTIBYTECODEC_TRUE@_multibytecodec cjkcodecs/multibytecodec.c
|
|
|
|
@MODULE_UNICODEDATA_TRUE@unicodedata unicodedata.c
|
2021-11-18 21:40:01 +08:00
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Modules with some UNIX dependencies
|
|
|
|
#
|
|
|
|
|
2021-11-24 05:26:50 +08:00
|
|
|
# needs -lcrypt on some systems
|
|
|
|
@MODULE__CRYPT_TRUE@_crypt _cryptmodule.c
|
2021-11-22 21:02:27 +08:00
|
|
|
@MODULE_FCNTL_TRUE@fcntl fcntlmodule.c
|
2021-11-21 17:45:31 +08:00
|
|
|
@MODULE_GRP_TRUE@grp grpmodule.c
|
2021-11-22 21:49:58 +08:00
|
|
|
@MODULE_MMAP_TRUE@mmap mmapmodule.c
|
2021-11-22 22:18:41 +08:00
|
|
|
# FreeBSD: nis/yp APIs are in libc
|
|
|
|
# Linux: glibc has deprecated SUN RPC, APIs are in libnsl and libtirpc (bpo-32521)
|
|
|
|
@MODULE_NIS_TRUE@nis nismodule.c
|
2021-11-21 17:45:31 +08:00
|
|
|
# needs sys/soundcard.h or linux/soundcard.h (Linux, FreeBSD)
|
2021-11-18 21:40:01 +08:00
|
|
|
@MODULE_OSSAUDIODEV_TRUE@ossaudiodev ossaudiodev.c
|
2021-11-22 22:37:25 +08:00
|
|
|
@MODULE__POSIXSUBPROCESS_TRUE@_posixsubprocess _posixsubprocess.c
|
2021-11-21 17:45:31 +08:00
|
|
|
@MODULE_RESOURCE_TRUE@resource resource.c
|
2021-11-22 21:49:58 +08:00
|
|
|
@MODULE_SELECT_TRUE@select selectmodule.c
|
2021-11-23 15:52:05 +08:00
|
|
|
@MODULE__SOCKET_TRUE@_socket socketmodule.c
|
2021-11-21 17:45:31 +08:00
|
|
|
# AIX has shadow passwords, but does not provide getspent API
|
|
|
|
@MODULE_SPWD_TRUE@spwd spwdmodule.c
|
|
|
|
@MODULE_SYSLOG_TRUE@syslog syslogmodule.c
|
|
|
|
@MODULE_TERMIOS_TRUE@termios termios.c
|
2021-11-19 22:10:41 +08:00
|
|
|
|
2021-11-24 15:19:17 +08:00
|
|
|
# multiprocessing
|
|
|
|
@MODULE__POSIXSHMEM_TRUE@_posixshmem _multiprocessing/posixshmem.c
|
|
|
|
|
2021-11-19 22:10:41 +08:00
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Modules with third party dependencies
|
|
|
|
#
|
|
|
|
@MODULE__SQLITE3_TRUE@_sqlite3 _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
|
2021-11-20 17:18:48 +08:00
|
|
|
|
2021-11-24 05:58:13 +08:00
|
|
|
# needs -lssl and -lcrypt
|
|
|
|
@MODULE__SSL_TRUE@_ssl _ssl.c
|
|
|
|
# needs -lcrypt
|
|
|
|
@MODULE__HASHLIB_TRUE@_hashlib _hashopenssl.c
|
|
|
|
|
2021-11-20 17:18:48 +08:00
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# macOS specific modules
|
|
|
|
|
|
|
|
# _scproxy needs SystemConfiguration and CoreFoundation framework
|
|
|
|
@MODULE__SCPROXY_TRUE@_scproxy _scproxy.c
|
2021-11-20 23:43:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Test modules
|
|
|
|
|
|
|
|
@MODULE__XXTESTFUZZ_TRUE@_xxtestfuzz _xxtestfuzz/_xxtestfuzz.c _xxtestfuzz/fuzzer.c
|
|
|
|
@MODULE__TESTBUFFER_TRUE@_testbuffer _testbuffer.c
|
|
|
|
@MODULE__TESTINTERNALCAPI_TRUE@_testinternalcapi _testinternalcapi.c
|
|
|
|
|
2021-11-23 04:27:05 +08:00
|
|
|
|
2021-11-20 23:43:10 +08:00
|
|
|
# Some testing modules MUST be built as shared libraries.
|
|
|
|
*shared*
|
|
|
|
@MODULE__TESTCAPI_TRUE@_testcapi _testcapimodule.c
|
|
|
|
@MODULE__TESTIMPORTMULTIPLE_TRUE@_testimportmultiple _testimportmultiple.c
|
|
|
|
@MODULE__TESTMULTIPHASE_TRUE@_testmultiphase _testmultiphase.c
|
|
|
|
@MODULE__CTYPES_TEST_TRUE@_ctypes_test _ctypes/_ctypes_test.c
|
2021-11-23 04:27:05 +08:00
|
|
|
|
|
|
|
# Limited API template modules; must be built as shared modules.
|
|
|
|
@MODULE_XXLIMITED_TRUE@xxlimited xxlimited.c
|
|
|
|
@MODULE_XXLIMITED_35_TRUE@xxlimited_35 xxlimited_35.c
|