Repository navigation
Port module setup to PY_STDLIB_MOD() macro and addext() #90005
Copy link
Copy link
Closed
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixesbuildThe build process and cross-buildThe build process and cross-buildtype-featureA feature request or enhancementA feature request or enhancement
Description
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2021-11-19.16:56:30.299>
labels = ['type-feature', 'build', '3.11']
title = 'Port module setup to PY_STDLIB_MOD() macro and addext()'
updated_at = <Date 2022-04-05.04:48:03.902>
user = 'https://github.com/tiran'bugs.python.org fields:
activity = <Date 2022-04-05.04:48:03.902>
actor = 'Anthony Sottile'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Build']
creation = <Date 2021-11-19.16:56:30.299>
creator = 'christian.heimes'
dependencies = []
files = []
hgrepos = []
issue_num = 45847
keywords = ['patch']
message_count = 61.0
messages = ['406597', '406618', '406646', '406662', '406703', '406714', '406746', '406751', '406754', '406755', '406763', '406771', '406777', '406779', '406781', '406782', '406783', '406784', '406785', '406788', '406801', '406822', '406823', '406842', '406890', '406891', '406892', '406905', '406913', '406914', '407077', '407199', '407249', '407255', '407274', '407287', '407654', '407668', '407861', '407949', '407958', '407959', '407962', '407981', '408008', '414642', '414645', '414648', '414649', '414656', '416425', '416565', '416566', '416567', '416568', '416569', '416570', '416575', '416600', '416712', '416750']
nosy_count = 6.0
nosy_names = ['christian.heimes', 'ned.deily', 'pablogsal', 'miss-islington', 'erlendaasland', 'arhadthedev']
pr_nums = ['29642', '29644', '29660', '29668', '29685', '29688', '29689', '29690', '29696', '29697', '29699', '29702', '29703', '29705', '29706', '29707', '29713', '29715', '29720', '29725', '29727', '29738', '29741', '29743', '29747', '29768', '29769', '29833', '29844', '29914', '29946', '29967', '29969', '31698', '32229', '32299', '32328']
priority = None
resolution = None
stage = 'patch review'
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue45847'
versions = ['Python 3.11']Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixesbuildThe build process and cross-buildThe build process and cross-buildtype-featureA feature request or enhancementA feature request or enhancement
Activity
tiran commentedon Nov 19, 2021
bpo-45573 added the PY_STDLIB_MOD() autoconf macro, Modules/Setup.stdlib.in template, and setup.py helper method addext().
The macro sets up
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.
tiran commentedon Nov 19, 2021
New changeset c8c21bd by Christian Heimes in branch 'main':
bpo-45847: Port builtin hashlib extensions to PY_STDLIB_MOD (GH-29642)
c8c21bd
tiran commentedon Nov 20, 2021
New changeset 5596909 by Christian Heimes in branch 'main':
bpo-45847: Port _scproxy to PY_STDLIB_MOD (GH-29644)
5596909
tiran commentedon Nov 20, 2021
New changeset f36c69a by Christian Heimes in branch 'main':
bpo-45847: Port test modules to PY_STDLIB_MOD (GH-29660)
f36c69a
tiran commentedon Nov 21, 2021
New changeset f201d26 by Christian Heimes in branch 'main':
bpo-45847: Port grp, spwd, termios, resource, syslog to PY_STDLIB_MOD (GH-29668)
f201d26
tiran commentedon Nov 21, 2021
New changeset 2afa1a1 by Christian Heimes in branch 'main':
bpo-45847: Port codecs and unicodedata to PY_STDLIB_MOD (GH-29685)
2afa1a1
tiran commentedon Nov 22, 2021
New changeset 133c65a by Erlend Egeberg Aasland in branch 'main':
bpo-45847: Port array, _contextvars, math, and cmath to PY_STDLIB_MOD_SIMPLE (GH-29688)
133c65a
miss-islington commentedon Nov 22, 2021
New changeset 718cee0 by Erlend Egeberg Aasland in branch 'main':
bpo-45847: Port _bisect, _heapq, _json, _pickle, _random, and _zoneinfo to PY_STDLIB_MOD_SIMPLE (GH-29689)
718cee0
erlend-aasland commentedon Nov 22, 2021
45 down, 35 to go.
84 remaining items
erlend-aasland commentedon Jul 6, 2022
See #93939 for the next step :)
pythongh-90005: Don't link with libbsd if not needed
gh-90005: Don't link with libbsd if not needed (#105236)
[3.12] pythongh-90005: Don't link with libbsd if not needed (python#1…
[3.11] pythongh-90005: Don't link with libbsd if not needed (python#1…
[3.12] gh-90005: Don't link with libbsd if not needed (#105236) (#105360
[3.11] gh-90005: Don't link with libbsd if not needed (#105236) (#105359
F18-Ray commentedon May 23, 2025
Did you fix it?