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

@tirantiran 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

Comment threadconfigure.ac Outdated
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-actionsgithub-actionsBot added the stale Stale PR or inactive for long period of time. label Dec 18, 2021
@tirantiran closed this Jun 30, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core reviewDO-NOT-MERGEstaleStale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@tiran@erlend-aasland@the-knights-who-say-ni@bedevere-bot