Skip to content

Commit ea2620b

Browse files
committed
Disable limited API for free-threaded Python
1 parent 6a181ce commit ea2620b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def main():
194194
"-DBUILD_TESTS=OFF",
195195
"-DBUILD_PERF_TESTS=OFF",
196196
"-DBUILD_DOCS=OFF",
197-
"-DPYTHON3_LIMITED_API=ON",
197+
"-DPYTHON3_LIMITED_API=%s" % ("OFF" if sysconfig.get_config_var("Py_GIL_DISABLED") else "ON"),
198198
"-DBUILD_OPENEXR=ON",
199199
]
200200
+ (

0 commit comments

Comments
 (0)