◐ Shell
clean mode source ↗

bpo-43974: Move Py_BUILD_CORE_MODULE into module code (GH-29157) by tiran · Pull Request #29157 · python/cpython

added 3 commits

October 22, 2021 14:00
``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``.

Signed-off-by: Christian Heimes <christian@python.org>
Makefile and makesetup already define ``Py_BUILD_CORE_BUILTIN`` and
include ``Modules/internal`` for us.

@tiran tiran mentioned this pull request

Oct 22, 2021

vstinner

@tiran tiran marked this pull request as ready for review

October 22, 2021 12:50

vstinner

@tiran tiran changed the title bpo-43974: Move Py_BUILD_CORE_MODULE into module code bpo-43974: Move Py_BUILD_CORE_MODULE into module code (GH-29157)

Oct 22, 2021

@tiran tiran deleted the bpo-43974-2 branch

October 22, 2021 13:36