bpo-41078: Add pycore_list.h internal header file (GH-21057)
* Move _PyList_ITEMS() to pycore_list.h. * The C extension "_heapq" is now built with Py_BUILD_CORE_MODULE macro defined to access the internal C API.
This commit is contained in:
3
setup.py
3
setup.py
@@ -863,7 +863,8 @@ class PyBuildExt(build_ext):
|
||||
# bisect
|
||||
self.add(Extension("_bisect", ["_bisectmodule.c"]))
|
||||
# heapq
|
||||
self.add(Extension("_heapq", ["_heapqmodule.c"]))
|
||||
self.add(Extension("_heapq", ["_heapqmodule.c"],
|
||||
extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
|
||||
# C-optimized pickle replacement
|
||||
self.add(Extension("_pickle", ["_pickle.c"],
|
||||
extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
|
||||
|
||||
Reference in New Issue
Block a user