bpo-45847: Various PY_STDLIB_MOD cleanups (GH-29697)

This commit is contained in:
Christian Heimes 2021-11-22 13:09:14 +02:00 committed by GitHub
parent 39f7d2ff01
commit 29699a2a2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 61 additions and 218 deletions

View file

@ -397,6 +397,10 @@ class PyBuildExt(build_ext):
pass
else:
# not migrated to MODULE_{name} yet.
self.announce(
f'WARNING: Makefile is missing module variable for "{ext.name}"',
level=2
)
self.extensions.append(ext)
def update_extension_flags(self, ext):
@ -995,12 +999,6 @@ class PyBuildExt(build_ext):
# complex math library functions
self.addext(Extension('cmath', ['cmathmodule.c']))
# time libraries: librt may be needed for clock_gettime()
time_libs = []
lib = sysconfig.get_config_var('TIMEMODULE_LIB')
if lib:
time_libs.append(lib)
# libm is needed by delta_new() that uses round() and by accum() that
# uses modf().
self.addext(Extension('_datetime', ['_datetimemodule.c']))