summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/generate_stdlib_module_names.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-07-14 07:51:49 (GMT)
committerGitHub <noreply@github.com>2022-07-14 07:51:49 (GMT)
commit81dca70d704d0834d8c30580e648a973250b2973 (patch)
tree4c3fbd011e05692ae1720457d0e7602484b8dd26 /Tools/scripts/generate_stdlib_module_names.py
parentb03a9e8c8a4f3f5bb7196d4825fbfdaff022756f (diff)
downloadcpython-81dca70d704d0834d8c30580e648a973250b2973.zip
cpython-81dca70d704d0834d8c30580e648a973250b2973.tar.gz
cpython-81dca70d704d0834d8c30580e648a973250b2973.tar.bz2
gh-93939: Build C extensions without setup.py (GH-94474)
Combines GH-93940, GH-94452, and GH-94433
Diffstat (limited to 'Tools/scripts/generate_stdlib_module_names.py')
-rw-r--r--Tools/scripts/generate_stdlib_module_names.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/Tools/scripts/generate_stdlib_module_names.py b/Tools/scripts/generate_stdlib_module_names.py
index 82f1094..92100bd 100644
--- a/Tools/scripts/generate_stdlib_module_names.py
+++ b/Tools/scripts/generate_stdlib_module_names.py
@@ -12,7 +12,6 @@ from check_extension_modules import ModuleChecker
SRC_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
STDLIB_PATH = os.path.join(SRC_DIR, 'Lib')
-SETUP_PY = os.path.join(SRC_DIR, 'setup.py')
IGNORE = {
'__init__',
@@ -64,15 +63,6 @@ def list_packages(names):
names.add(name)
-# Extension modules built by setup.py
-def list_setup_extensions(names):
- cmd = [sys.executable, SETUP_PY, "-q", "build", "--list-module-names"]
- output = subprocess.check_output(cmd)
- output = output.decode("utf8")
- extensions = output.splitlines()
- names |= set(extensions)
-
-
# Built-in and extension modules built by Modules/Setup*
# includes Windows and macOS extensions.
def list_modules_setup_extensions(names):
@@ -103,7 +93,6 @@ def list_frozen(names):
def list_modules():
names = set(sys.builtin_module_names)
list_modules_setup_extensions(names)
- list_setup_extensions(names)
list_packages(names)
list_python_modules(names)
list_frozen(names)