◐ Shell
clean mode source ↗

bpo-45847: port _struct to PY_STDLIB_MOD (GH-29706) by tiran · Pull Request #29706 · python/cpython

Expand Up @@ -1023,6 +1023,7 @@ def detect_simple_extensions(self):
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: Expand Down Expand Up @@ -1447,6 +1448,9 @@ def detect_uuid(self): self.missing.append('_uuid')
def detect_modules(self): # remove dummy extension self.extensions = []
self.configure_compiler() self.init_inc_lib_dirs()
Expand Down Expand Up @@ -2101,9 +2105,9 @@ class DummyProcess: '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 Expand Down