[Python-checkins] bpo-36635, bpo-36696: Fix setup.py on AIX (GH-12922)

Victor Stinner webhook-mailer at python.org
Tue Apr 23 06:26:52 EDT 2019


https://github.com/python/cpython/commit/574913479f26b5ff48827861bce68281be01d16e
commit: 574913479f26b5ff48827861bce68281be01d16e
branch: master
author: Victor Stinner <vstinner at redhat.com>
committer: GitHub <noreply at github.com>
date: 2019-04-23T12:26:33+02:00
summary:

bpo-36635, bpo-36696: Fix setup.py on AIX (GH-12922)

xlc compiler doesn't support "-D define" flag only "-Ddefine".

files:
M setup.py

diff --git a/setup.py b/setup.py
index 3d6404f89eef..58c16e8ba49d 100644
--- a/setup.py
+++ b/setup.py
@@ -726,12 +726,12 @@ def detect_simple_extensions(self):
         self.add(Extension("_heapq", ["_heapqmodule.c"]))
         # C-optimized pickle replacement
         self.add(Extension("_pickle", ["_pickle.c"],
-                           extra_compile_args=['-D Py_BUILD_CORE_MODULE']))
+                           extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
         # atexit
         self.add(Extension("atexit", ["atexitmodule.c"]))
         # _json speedups
         self.add(Extension("_json", ["_json.c"],
-                           extra_compile_args=['-D Py_BUILD_CORE_MODULE']))
+                           extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
 
         # profiler (_lsprof is for cProfile.py)
         self.add(Extension('_lsprof', ['_lsprof.c', 'rotatingtree.c']))
@@ -816,7 +816,7 @@ def detect_test_extensions(self):
 
         # Python Internal C API test module
         self.add(Extension('_testinternalcapi', ['_testinternalcapi.c'],
-                           extra_compile_args=['-D Py_BUILD_CORE_MODULE']))
+                           extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
 
         # Python PEP-3118 (buffer protocol) test module
         self.add(Extension('_testbuffer', ['_testbuffer.c']))



More information about the Python-checkins mailing list