Skip to content

Commit 9c06d5d

Browse files
committed
ENH: Conditionally include free_threading_config.pxi based on GIL status
1 parent 499c5d4 commit 9c06d5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/_libs/internals.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ from pandas._libs.util cimport (
2626
is_integer_object,
2727
)
2828

29-
include "free_threading_config.pxi"
29+
IF Py_GIL_DISABLED:
30+
include "free_threading_config.pxi"
3031

3132
IF CYTHON_COMPATIBLE_WITH_FREE_THREADING:
3233
from cpython.ref cimport Py_DECREF

0 commit comments

Comments
 (0)