mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-45847: port _struct to PY_STDLIB_MOD (GH-29706)
This commit is contained in:
parent
4fad314246
commit
0e1c2f3ef8
4 changed files with 23 additions and 2 deletions
8
setup.py
8
setup.py
|
@ -1023,6 +1023,7 @@ class PyBuildExt(build_ext):
|
|||
|
||||
self.addext(Extension("_queue", ["_queuemodule.c"]))
|
||||
self.addext(Extension("_statistics", ["_statisticsmodule.c"]))
|
||||
self.addext(Extension("_struct", ["_struct.c"]))
|
||||
self.addext(Extension("_typing", ["_typingmodule.c"]))
|
||||
|
||||
# Modules with some UNIX dependencies -- on by default:
|
||||
|
@ -1446,6 +1447,9 @@ class PyBuildExt(build_ext):
|
|||
self.missing.append('_uuid')
|
||||
|
||||
def detect_modules(self):
|
||||
# remove dummy extension
|
||||
self.extensions = []
|
||||
|
||||
self.configure_compiler()
|
||||
self.init_inc_lib_dirs()
|
||||
|
||||
|
@ -2100,9 +2104,9 @@ def main():
|
|||
'build_scripts': PyBuildScripts,
|
||||
'install': PyBuildInstall,
|
||||
'install_lib': PyBuildInstallLib},
|
||||
# The struct module is defined here, because build_ext won't be
|
||||
# A dummy module is defined here, because build_ext won't be
|
||||
# called unless there's at least one extension module defined.
|
||||
ext_modules=[Extension('_struct', ['_struct.c'])],
|
||||
ext_modules=[Extension('_dummy', ['_dummy.c'])],
|
||||
|
||||
# If you change the scripts installed here, you also need to
|
||||
# check the PyBuildScripts command above, and change the links
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue