Files
MINGW-packages/mingw-w64-python3/0095-no-xxmodule-for-PYDEBUG.patch
2013-12-09 00:08:47 +04:00

13 lines
590 B
Diff

diff -urN a/setup.py b/setup.py
--- a/setup.py 2013-04-24 23:35:42.346762588 +0100
+++ b/setup.py 2013-04-24 23:35:42.687764851 +0100
@@ -1877,7 +1877,7 @@
## # Uncomment these lines if you want to play with xxmodule.c
## ext = Extension('xx', ['xxmodule.c'])
## self.extensions.append(ext)
- if 'd' not in sys.abiflags:
+ if 'd' not in sys.abiflags and not COMPILED_WITH_PYDEBUG:
ext = Extension('xxlimited', ['xxlimited.c'],
define_macros=[('Py_LIMITED_API', 1)])
self.extensions.append(ext)