@@ -726,12 +726,12 @@ def detect_simple_extensions(self):
726726 self .add (Extension ("_heapq" , ["_heapqmodule.c" ]))
727727 # C-optimized pickle replacement
728728 self .add (Extension ("_pickle" , ["_pickle.c" ],
729- extra_compile_args = ['-D Py_BUILD_CORE_MODULE ' ]))
729+ extra_compile_args = ['-DPy_BUILD_CORE_MODULE ' ]))
730730 # atexit
731731 self .add (Extension ("atexit" , ["atexitmodule.c" ]))
732732 # _json speedups
733733 self .add (Extension ("_json" , ["_json.c" ],
734- extra_compile_args = ['-D Py_BUILD_CORE_MODULE ' ]))
734+ extra_compile_args = ['-DPy_BUILD_CORE_MODULE ' ]))
735735
736736 # profiler (_lsprof is for cProfile.py)
737737 self .add (Extension ('_lsprof' , ['_lsprof.c' , 'rotatingtree.c' ]))
@@ -816,7 +816,7 @@ def detect_test_extensions(self):
816816
817817 # Python Internal C API test module
818818 self .add (Extension ('_testinternalcapi' , ['_testinternalcapi.c' ],
819- extra_compile_args = ['-D Py_BUILD_CORE_MODULE ' ]))
819+ extra_compile_args = ['-DPy_BUILD_CORE_MODULE ' ]))
820820
821821 # Python PEP-3118 (buffer protocol) test module
822822 self .add (Extension ('_testbuffer' , ['_testbuffer.c' ]))
0 commit comments