Skip to content

Commit 14ecf66

Browse files
committed
In test_cext: Tell setuptools when we are generating a limited_api module
1 parent 3428762 commit 14ecf66

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Lib/test/test_cext/setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def main():
107107
if internal:
108108
cflags.append('-DTEST_INTERNAL_C_API=1')
109109

110+
py_limited_api = limited or abi3t
111+
110112
# Add additional include and library directories, typically for in-tree
111113
# testing where not all directories are inferred
112114
include_dirs = []
@@ -131,7 +133,9 @@ def main():
131133
sources=sources,
132134
extra_compile_args=cflags,
133135
include_dirs=include_dirs,
134-
library_dirs=library_dirs)
136+
library_dirs=library_dirs,
137+
py_limited_api=py_limited_api
138+
)
135139
setup(name=f'internal_{module_name}',
136140
version='0.0',
137141
ext_modules=[ext])

0 commit comments

Comments
 (0)