From 34098991289cb3e8eec012fa0243f30b9709666f Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 2 Nov 2021 13:08:40 +0200 Subject: bpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358) --- .../next/Core and Builtins/2021-11-02-09-27-46.bpo-45688.v5Der1.rst | 2 ++ Python/stdlib_module_names.h | 1 + Tools/scripts/generate_stdlib_module_names.py | 6 +++++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2021-11-02-09-27-46.bpo-45688.v5Der1.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-11-02-09-27-46.bpo-45688.v5Der1.rst b/Misc/NEWS.d/next/Core and Builtins/2021-11-02-09-27-46.bpo-45688.v5Der1.rst new file mode 100644 index 0000000..afd73a1 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2021-11-02-09-27-46.bpo-45688.v5Der1.rst @@ -0,0 +1,2 @@ +:data:`sys.stdlib_module_names` now contains the macOS-specific module +:mod:`_scproxy`. diff --git a/Python/stdlib_module_names.h b/Python/stdlib_module_names.h index 1743292..754fa94 100644 --- a/Python/stdlib_module_names.h +++ b/Python/stdlib_module_names.h @@ -61,6 +61,7 @@ static const char* _Py_stdlib_module_names[] = { "_pyio", "_queue", "_random", +"_scproxy", "_sha1", "_sha256", "_sha3", diff --git a/Tools/scripts/generate_stdlib_module_names.py b/Tools/scripts/generate_stdlib_module_names.py index 50042f1..3e896ba 100644 --- a/Tools/scripts/generate_stdlib_module_names.py +++ b/Tools/scripts/generate_stdlib_module_names.py @@ -54,6 +54,10 @@ WINDOWS_MODULES = ( 'winsound' ) +# macOS extension modules +MACOS_MODULES = ( + '_scproxy', +) # Pure Python modules (Lib/*.py) def list_python_modules(names): @@ -136,7 +140,7 @@ def list_frozen(names): def list_modules(): - names = set(sys.builtin_module_names) | set(WINDOWS_MODULES) + names = set(sys.builtin_module_names) | set(WINDOWS_MODULES) | set(MACOS_MODULES) list_modules_setup_extensions(names) list_setup_extensions(names) list_packages(names) -- cgit v0.12