changeset: 105573:ff82dfd558df parent: 105571:c4865975b804 parent: 105572:f9e0c864157c user: Xavier de Gaye date: Sat Dec 10 16:48:07 2016 +0100 files: Misc/NEWS setup.py description: Issue #28918: Merge 3.6. diff -r c4865975b804 -r ff82dfd558df Misc/NEWS --- a/Misc/NEWS Sat Dec 10 05:57:49 2016 +0000 +++ b/Misc/NEWS Sat Dec 10 16:48:07 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 #5322: Fixed setting __new__ to a PyCFunction inside Python code. Original patch by Andreas Stührk. diff -r c4865975b804 -r ff82dfd558df setup.py --- a/setup.py Sat Dec 10 05:57:49 2016 +0000 +++ b/setup.py Sat Dec 10 16:48:07 2016 +0100 @@ -1631,7 +1631,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)