summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-12-10 15:48:07 (GMT)
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-12-10 15:48:07 (GMT)
commitc1a26a2e473efd3ff7a9cca5be75959384c41b8c (patch)
treeba4b32958e971f14a3ee6963d445cf29bd246601
parentb5e3959e5f0f24a21677fdb491b181fdfa43d491 (diff)
parent13f1c331a5dd5b4ff3b1e4c9e47d6d3ae75e0f8f (diff)
downloadcpython-c1a26a2e473efd3ff7a9cca5be75959384c41b8c.zip
cpython-c1a26a2e473efd3ff7a9cca5be75959384c41b8c.tar.gz
cpython-c1a26a2e473efd3ff7a9cca5be75959384c41b8c.tar.bz2
Issue #28918: Merge 3.6.
-rw-r--r--Misc/NEWS3
-rw-r--r--setup.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index bb120e5..48ce4bd 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@ What's New in Python 3.7.0 alpha 1
Core and Builtins
-----------------
+- Issue #28918: Fix the cross compilation of xxlimited when Python has been
+ built with Py_DEBUG defined.
+
- Issue #5322: Fixed setting __new__ to a PyCFunction inside Python code.
Original patch by Andreas Stührk.
diff --git a/setup.py b/setup.py
index bdccf84..baa9cef 100644
--- a/setup.py
+++ b/setup.py
@@ -1631,7 +1631,7 @@ class PyBuildExt(build_ext):
## ext = Extension('xx', ['xxmodule.c'])
## self.extensions.append(ext)
- if 'd' not in sys.abiflags:
+ if 'd' not in sysconfig.get_config_var('ABIFLAGS'):
ext = Extension('xxlimited', ['xxlimited.c'],
define_macros=[('Py_LIMITED_API', '0x03050000')])
self.extensions.append(ext)