summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-11-19 17:40:57 +0200
committerGitHub <noreply@github.com>2021-11-19 16:40:57 +0100
commit7e44dc0ba768451f287a541cd1c85f7d87a41561 (patch)
treeba3b37dd571ba31928abb7f8e33fdbab10cb29c9 /setup.py
parentd64659d8cdd90bf52950563c945b30b5f0ca8dd2 (diff)
downloadcpython-git-7e44dc0ba768451f287a541cd1c85f7d87a41561.tar.gz
bpo-45573: Move mandatory core modules to Modules/Setup.bootstrap (GH-29616)
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/setup.py b/setup.py
index 040f90af60..0b7e7ab0a3 100644
--- a/setup.py
+++ b/setup.py
@@ -1006,13 +1006,9 @@ class PyBuildExt(build_ext):
if lib:
time_libs.append(lib)
- # time operations and variables
- self.add(Extension('time', ['timemodule.c'],
- libraries=time_libs))
# libm is needed by delta_new() that uses round() and by accum() that
# uses modf().
- self.add(Extension('_datetime', ['_datetimemodule.c'],
- libraries=['m']))
+ self.addext(Extension('_datetime', ['_datetimemodule.c']))
# zoneinfo module
self.add(Extension('_zoneinfo', ['_zoneinfo.c']))
# random number generator implemented in C
@@ -1034,8 +1030,6 @@ class PyBuildExt(build_ext):
self.add(Extension('_opcode', ['_opcode.c']))
# asyncio speedups
self.add(Extension("_asyncio", ["_asynciomodule.c"]))
- # _abc speedups
- self.add(Extension("_abc", ["_abc.c"]))
# _queue module
self.add(Extension("_queue", ["_queuemodule.c"]))
# _statistics module
@@ -1054,8 +1048,6 @@ class PyBuildExt(build_ext):
libs = ['bsd']
self.add(Extension('fcntl', ['fcntlmodule.c'],
libraries=libs))
- # pwd(3)
- self.add(Extension('pwd', ['pwdmodule.c']))
# grp(3)
if not VXWORKS:
self.add(Extension('grp', ['grpmodule.c']))
@@ -1510,6 +1502,9 @@ class PyBuildExt(build_ext):
self.configure_compiler()
self.init_inc_lib_dirs()
+ # Some C extensions are built by entries in Modules/Setup.bootstrap.
+ # These are extensions are required to bootstrap the interpreter or
+ # build process.
self.detect_simple_extensions()
if TEST_EXTENSIONS:
self.detect_test_extensions()