bpo-45573: Introduce extension module flags in Makefile (GH-29594) by tiran · Pull Request #29594 · python/cpython

@tiran

``configure`` now uses a standardized format to forward state, compiler
flags, and linker flags to ``Makefile``, ``setup.py``, and
``Modules/Setup``. ``makesetup`` use the new variables by default if a
module line does not contain any compiler or linker flags. ``setup.py``
has a new function ``addext()``.

For a module ``egg``, configure adds:

* ``MODULE_EGG`` with value yes, missing, disabled, or n/a
* ``MODULE_EGG_CFLAGS``
* ``MODULE_EGG_LDFLAGS``

``Makefile.pre.in`` may also provide ``MODULE_EGG_DEPS`` that lists
dependencies such as header files and static libs.

Signed-off-by: Christian Heimes <christian@python.org>

@tiran tiran marked this pull request as ready for review

November 17, 2021 18:06

erlend-aasland

@tiran tiran changed the title bpo-45573: Introduce extension module flags in Makefile bpo-45573: Introduce extension module flags in Makefile (GH-29594)

Nov 18, 2021

@tiran tiran deleted the bpo-45573-configure-mod branch

November 18, 2021 08:18

remykarem pushed a commit to remykarem/cpython that referenced this pull request

Dec 7, 2021
``configure`` now uses a standardized format to forward state, compiler
flags, and linker flags to ``Makefile``, ``setup.py``, and
``Modules/Setup``. ``makesetup`` use the new variables by default if a
module line does not contain any compiler or linker flags. ``setup.py``
has a new function ``addext()``.

For a module ``egg``, configure adds:

* ``MODULE_EGG`` with value yes, missing, disabled, or n/a
* ``MODULE_EGG_CFLAGS``
* ``MODULE_EGG_LDFLAGS``

``Makefile.pre.in`` may also provide ``MODULE_EGG_DEPS`` that lists
dependencies such as header files and static libs.

Signed-off-by: Christian Heimes <christian@python.org>

@tiran tiran mentioned this pull request

Jan 22, 2023