summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-03-07 18:31:12 (GMT)
committerGitHub <noreply@github.com>2024-03-07 18:31:12 (GMT)
commitd9bcdda39c62a8c37637ecd5f82f83f6e8828243 (patch)
treede049b30afce764294da16617d0241bb14aab088 /Tools
parentd9ccde28c4321ffc0d3f8b18c6346d075b784c40 (diff)
downloadcpython-d9bcdda39c62a8c37637ecd5f82f83f6e8828243.zip
cpython-d9bcdda39c62a8c37637ecd5f82f83f6e8828243.tar.gz
cpython-d9bcdda39c62a8c37637ecd5f82f83f6e8828243.tar.bz2
gh-116417: Add _testlimitedcapi C extension (#116419)
Add a new C extension "_testlimitedcapi" which is only built with the limited C API. Move heaptype_relative.c and vectorcall_limited.c from Modules/_testcapi/ to Modules/_testlimitedcapi/. * configure: add _testlimitedcapi test extension. * Update generate_stdlib_module_names.py. * Update make check-c-globals. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'Tools')
-rw-r--r--Tools/build/generate_stdlib_module_names.py1
-rw-r--r--Tools/c-analyzer/c_parser/preprocessor/gcc.py4
-rw-r--r--Tools/msi/test/test_files.wxs2
3 files changed, 4 insertions, 3 deletions
diff --git a/Tools/build/generate_stdlib_module_names.py b/Tools/build/generate_stdlib_module_names.py
index 588dfda..69dc74e 100644
--- a/Tools/build/generate_stdlib_module_names.py
+++ b/Tools/build/generate_stdlib_module_names.py
@@ -32,6 +32,7 @@ IGNORE = {
'_testconsole',
'_testimportmultiple',
'_testinternalcapi',
+ '_testlimitedcapi',
'_testmultiphase',
'_testsinglephase',
'_testexternalinspection',
diff --git a/Tools/c-analyzer/c_parser/preprocessor/gcc.py b/Tools/c-analyzer/c_parser/preprocessor/gcc.py
index 6ece70c..cc3a9be 100644
--- a/Tools/c-analyzer/c_parser/preprocessor/gcc.py
+++ b/Tools/c-analyzer/c_parser/preprocessor/gcc.py
@@ -15,8 +15,8 @@ FILES_WITHOUT_INTERNAL_CAPI = frozenset((
# C files in the fhe following directories must not be built with
# Py_BUILD_CORE.
DIRS_WITHOUT_INTERNAL_CAPI = frozenset((
- # Modules/_testcapi/
- '_testcapi',
+ '_testcapi', # Modules/_testcapi/
+ '_testlimitedcapi', # Modules/_testlimitedcapi/
))
TOOL = 'gcc'
diff --git a/Tools/msi/test/test_files.wxs b/Tools/msi/test/test_files.wxs
index bb9b258..6862a58 100644
--- a/Tools/msi/test/test_files.wxs
+++ b/Tools/msi/test/test_files.wxs
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
- <?define exts=_testcapi;_ctypes_test;_testbuffer;_testimportmultiple;_testmultiphase;_testsinglephase;_testconsole;_testinternalcapi;_testclinic;_testclinic_limited ?>
+ <?define exts=_testcapi;_testlimitedcapi;_ctypes_test;_testbuffer;_testimportmultiple;_testmultiphase;_testsinglephase;_testconsole;_testinternalcapi;_testclinic;_testclinic_limited ?>
<Fragment>
<ComponentGroup Id="test_extensions">
<?foreach ext in $(var.exts)?>