[New-bugs-announce] [issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

Christian Heimes report at bugs.python.org
Fri Nov 19 11:56:30 EST 2021


New submission from Christian Heimes <lists at cheimes.de>:

bpo-45573 added the PY_STDLIB_MOD() autoconf macro, Modules/Setup.stdlib.in template, and setup.py helper method addext().

The macro sets up

* MODULE_{NAME}_TRUE/FALSE conditional
* MODULE_{NAME} variable with values yes, disabled, missing, or n/a
* MODULE_{NAME}_CFLAGS
* MODULE_{NAME}_LDFLAGS

Additionally there is a MODULE_{NAME}_DEPS variable with dependency information.

The Modules/Setup.stdlib.in template and addext() method consume the variables and set up extension compilation and linking. There is no need to look for headers or libraries in setup.py any more.

Let's port all modules to the new approach.

----------
components: Build
messages: 406597
nosy: christian.heimes
priority: normal
severity: normal
status: open
title: Port module setup to PY_STDLIB_MOD() macro and addext()
type: enhancement
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45847>
_______________________________________


More information about the New-bugs-announce mailing list