changeset: 105572:f9e0c864157c branch: 3.6 parent: 105570:ee8c8b79d1d5 user: Xavier de Gaye date: Sat Dec 10 16:45:53 2016 +0100 files: Misc/NEWS setup.py description: Issue #28918: Fix the cross compilation of xxlimited when Python has been built with Py_DEBUG defined. diff -r ee8c8b79d1d5 -r f9e0c864157c Misc/NEWS --- a/Misc/NEWS Sat Dec 10 05:57:38 2016 +0000 +++ b/Misc/NEWS Sat Dec 10 16:45:53 2016 +0100 @@ -10,6 +10,9 @@ Core and Builtins ----------------- +- Issue #28918: Fix the cross compilation of xxlimited when Python has been + built with Py_DEBUG defined. + - Issue #28731: Optimize _PyDict_NewPresized() to create correct size dict. Improve speed of dict literal with constant keys up to 30%. diff -r ee8c8b79d1d5 -r f9e0c864157c setup.py --- a/setup.py Sat Dec 10 05:57:38 2016 +0000 +++ b/setup.py Sat Dec 10 16:45:53 2016 +0100 @@ -1630,7 +1630,7 @@ ## 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)