Skip to content

Commit a3e64bf

Browse files
committed
allow limited API builds on free-threaded 3.15 and newer
1 parent 2079ca7 commit a3e64bf

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/cffi/setuptools_ext.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,9 @@ def _set_py_limited_api(Extension, kwds):
104104
# warning.
105105
kwds['py_limited_api'] = True
106106

107-
if sysconfig.get_config_var("Py_GIL_DISABLED"):
107+
if sysconfig.get_config_var("Py_GIL_DISABLED") and sys.version_info < (3, 15):
108108
if kwds.get('py_limited_api'):
109109
log.info("Ignoring py_limited_api=True for free-threaded build.")
110-
111110
kwds['py_limited_api'] = False
112111

113112
if kwds.get('py_limited_api') is False:

0 commit comments

Comments
 (0)