summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-08-10 17:57:30 +0200
committerStefan Behnel <stefan_ml@behnel.de>2018-08-10 17:57:30 +0200
commit429936a2d90648b64084c80deb7bda96b434b61d (patch)
tree335c27e19710a05715a3f6fbda25097e762a67d0 /Cython/Utility/ModuleSetupCode.c
parent17d28b3454d7595f86f01303d8fad369bc83b887 (diff)
downloadcython-429936a2d90648b64084c80deb7bda96b434b61d.tar.gz
Revert PEP-489 behaviour, but keep error raising code to make it easy to try both.
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r--Cython/Utility/ModuleSetupCode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
index 55c379904..ac6264574 100644
--- a/Cython/Utility/ModuleSetupCode.c
+++ b/Cython/Utility/ModuleSetupCode.c
@@ -178,7 +178,9 @@
#define CYTHON_FAST_PYCALL 1
#endif
#ifndef CYTHON_PEP489_MULTI_PHASE_INIT
- #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
+ // Disabled for now. Most extension modules simply can't deal with it, and Cython isn't ready either.
+ // See issues listed here: https://docs.python.org/3/c-api/init.html#sub-interpreter-support
+ #define CYTHON_PEP489_MULTI_PHASE_INIT (0 && PY_VERSION_HEX >= 0x03050000)
#endif
#ifndef CYTHON_USE_TP_FINALIZE
#define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)