]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43974: Move Py_BUILD_CORE_MODULE into module code (GH-29157)
authorChristian Heimes <christian@python.org>
Fri, 22 Oct 2021 13:36:28 +0000 (16:36 +0300)
committerGitHub <noreply@github.com>
Fri, 22 Oct 2021 13:36:28 +0000 (15:36 +0200)
commit03e9f5dc751b8c441a85f428abc3f432ffe46345
tree3ea47646a3402f2ad8bdda2366bd9a214899ff44
parent86dfb55d2e091cf633dbd7aabcd49d96fb1f9d81
bpo-43974: Move Py_BUILD_CORE_MODULE into module code (GH-29157)

setup.py no longer defines Py_BUILD_CORE_MODULE. Instead every
module defines the macro before #include "Python.h" unless
Py_BUILD_CORE_BUILTIN is already defined.

Py_BUILD_CORE_BUILTIN is defined for every module that is built by
Modules/Setup.

The PR also simplifies Modules/Setup. Makefile and makesetup
already define Py_BUILD_CORE_BUILTIN and include Modules/internal
for us.

Signed-off-by: Christian Heimes <christian@python.org>
40 files changed:
Misc/NEWS.d/next/Build/2021-10-22-14-00-44.bpo-43974.HHZtbx.rst [new file with mode: 0644]
Modules/Setup
Modules/_abc.c
Modules/_asynciomodule.c
Modules/_blake2/blake2b_impl.c
Modules/_blake2/blake2module.c
Modules/_blake2/blake2s_impl.c
Modules/_ctypes/_ctypes.c
Modules/_ctypes/callbacks.c
Modules/_ctypes/cfield.c
Modules/_ctypes/stgdict.c
Modules/_cursesmodule.c
Modules/_datetimemodule.c
Modules/_decimal/_decimal.c
Modules/_hashopenssl.c
Modules/_heapqmodule.c
Modules/_json.c
Modules/_lsprof.c
Modules/_math.c
Modules/_pickle.c
Modules/_posixsubprocess.c
Modules/_queuemodule.c
Modules/_randommodule.c
Modules/_sha3/sha3module.c
Modules/_struct.c
Modules/_testinternalcapi.c
Modules/_testmultiphase.c
Modules/_xxsubinterpretersmodule.c
Modules/_zoneinfo.c
Modules/arraymodule.c
Modules/binascii.c
Modules/cmathmodule.c
Modules/mathmodule.c
Modules/md5module.c
Modules/sha1module.c
Modules/sha256module.c
Modules/sha512module.c
Modules/unicodedata.c
PCbuild/pyproject.props
setup.py