mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
bpo-45847: Various PY_STDLIB_MOD cleanups (GH-29697)
This commit is contained in:
parent
39f7d2ff01
commit
29699a2a2a
3 changed files with 61 additions and 218 deletions
10
setup.py
10
setup.py
|
@ -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']))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue