◐ Shell
reader mode source ↗
Skip to content

bpo-45573: Detect stdlib extension modules in configure#29534

Closed
tiran wants to merge 8 commits into
python:mainfrom
tiran:configure_stdlib
Closed

bpo-45573: Detect stdlib extension modules in configure#29534
tiran wants to merge 8 commits into
python:mainfrom
tiran:configure_stdlib

Conversation

@tiran

@tiran tiran commented Nov 12, 2021

Copy link
Copy Markdown
Member

work in progress

configure now detects if a stdlib extension module is enabled/disabled and all prerequisites are available. Compiler and linker flags are passed to Makefile, makesetup, and setup.py.

For each extension module Makefile now contains up to three additional variables:

MODULE__SSL=yes
MODULE__SSL_CFLAGS=
MODULE__SSL_LDFLAGS=-lssl -lcrypto  

Modules/Setup entries use the new variables. An entry like _ssl _ssl.c is sufficient to compile the ssl module as builtin. All compiler and linker flags are set by configure. The MODULE_EGG can be one of yes, disabled, missing, n/a.

Modules/_ssl.o: $(srcdir)/Modules/_ssl.c $(MODULE__SSL_DEPS) $(PYTHON_HEADERS) Modules/config.c
    $(CC) $(CCSHARED) $(PY_CFLAGS_NODIST) $(PY_CPPFLAGS) $(MODULE__SSL_CFLAGS) -c $(srcdir)/Modules/_ssl.c -o Modules/_ssl.o
Modules/_ssl$(EXT_SUFFIX):  Modules/_ssl.o
    $(BLDSHARED)  Modules/_ssl.o $(MODULE__SSL_LDFLAGS)  -o Modules/_ssl$(EXT_SUFFIX)

Missing modules: _curses, _curses_panel, _dbm, _sqlite3, _nis, _ctypes.

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

https://bugs.python.org/issue45573

configure now detects if a stdlib extension module is enabled/disabled
and all prerequisites are available. Compiler and linker flags are
passed to Makefile, makesetup, and setup.py.

Missing modules: _curses, _curses_panel, _dbm, _sqlite3, _nis, _ctypes.

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

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Dec 18, 2021
@tiran tiran closed this Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants