-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
By disabling "CYTHON_FAST_THREAD_STATE" and "CYTHON_USE_EXC_INFO_STACK" I think this still leaves some breakage in Coroutines.c but it's enough of a fix that Cython succeeds in building itself. Therefore I think it's worth doing now even if it doesn't fix everything. Related to #4500
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,7 +177,10 @@ | |
#ifndef CYTHON_UNPACK_METHODS | ||
#define CYTHON_UNPACK_METHODS 1 | ||
#endif | ||
#ifndef CYTHON_FAST_THREAD_STATE | ||
#if PY_VERSION_HEX >= 0x030B00A4 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
scoder
via email
Contributor
|
||
#undef CYTHON_FAST_THREAD_STATE | ||
#define CYTHON_FAST_THREAD_STATE 0 | ||
#elif !defined(CYTHON_FAST_THREAD_STATE) | ||
#define CYTHON_FAST_THREAD_STATE 1 | ||
#endif | ||
#ifndef CYTHON_FAST_PYCALL | ||
|
@@ -194,7 +197,10 @@ | |
#ifndef CYTHON_USE_DICT_VERSIONS | ||
#define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1) | ||
#endif | ||
#ifndef CYTHON_USE_EXC_INFO_STACK | ||
#if PY_VERSION_HEX >= 0x030B00A4 | ||
#undef CYTHON_USE_EXC_INFO_STACK | ||
#define CYTHON_USE_EXC_INFO_STACK 0 | ||
#elif !defined(CYTHON_USE_EXC_INFO_STACK) | ||
#define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3) | ||
#endif | ||
#endif | ||
|
Disabling CYTHON_FAST_THREAD_STATE breaks FastGIL under Python 3.11. Any suggestions / thoughts on what we can do to keep FastGIL working with Python 3.11 and Cython 0.29?
FYI + @robertwb