Skip to content

Commit 9b62841

Browse files
authored
Skip abi3extension example on free-threaded Python
1 parent 45c53ba commit 9b62841

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

setuptools/tests/test_bdist_wheel.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,10 @@
189189
}
190190

191191

192-
if sys.platform != "win32":
193-
# ABI3 extensions don't really work on Windows
192+
if sys.platform != "win32" and not sysconfig.get_config_var("Py_GIL_DISABLED"):
193+
# ABI3 extensions don't really work on Windows.
194+
# Free-threaded builds also reject Py_LIMITED_API for now.
195+
# See https://github.com/python/cpython/issues/146636 (PEP 803 / abi3t).
194196
EXAMPLES["abi3extension-dist"] = {
195197
"setup.py": cleandoc(
196198
"""

0 commit comments

Comments
 (0)