Skip to content

Commit

Permalink
Allow users to override CYTHON_PEP489_MULTI_PHASE_INIT in PyPy 3.9+.
Browse files Browse the repository at this point in the history
See #5413
Improves on #5414
  • Loading branch information
scoder committed May 2, 2023
1 parent a27f7bc commit b774109
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Cython/Utility/ModuleSetupCode.c
Expand Up @@ -76,10 +76,11 @@
#define CYTHON_FAST_THREAD_STATE 0
#undef CYTHON_FAST_PYCALL
#define CYTHON_FAST_PYCALL 0
#if PY_VERSION_HEX >= 0x03090000
#define CYTHON_PEP489_MULTI_PHASE_INIT 1
#else
#if PY_VERSION_HEX < 0x03090000
#undef CYTHON_PEP489_MULTI_PHASE_INIT
#define CYTHON_PEP489_MULTI_PHASE_INIT 0
#elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT)
#define CYTHON_PEP489_MULTI_PHASE_INIT 1
#endif
#undef CYTHON_USE_TP_FINALIZE
#define CYTHON_USE_TP_FINALIZE 0
Expand Down

0 comments on commit b774109

Please sign in to comment.