Skip to content

Commit f49eb7d

Browse files
committed
build _testinternalcapi as a shared module
1 parent 7d6f0f6 commit f49eb7d

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

cpython-unix/extension-modules.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ _testinternalcapi:
638638
- Include/internal
639639
sources:
640640
- _testinternalcapi.c
641+
build-mode: shared
641642
includes-conditional:
642643
- path: _testinternalcapi/parts.h
643644
minimum-python-version: "3.13"

src/validation.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,13 @@ const GLOBAL_EXTENSIONS_WINDOWS_PRE_3_13: &[&str] = &["_msi"];
840840
const GLOBAL_EXTENSIONS_WINDOWS_NO_STATIC: &[&str] = &["_testinternalcapi", "_tkinter"];
841841

842842
/// Extension modules that should be built as shared libraries.
843-
const SHARED_LIBRARY_EXTENSIONS: &[&str] = &["_crypt", "_ctypes_test", "_dbm", "_tkinter"];
843+
const SHARED_LIBRARY_EXTENSIONS: &[&str] = &[
844+
"_crypt",
845+
"_ctypes_test",
846+
"_dbm",
847+
"_testinternalcapi",
848+
"_tkinter",
849+
];
844850

845851
const PYTHON_VERIFICATIONS: &str = include_str!("verify_distribution.py");
846852

0 commit comments

Comments
 (0)