mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
bpo-40422: Move _Py_closerange to fileutils.c (GH-22680)
This API is relatively lightweight and organizationally, given that it's used by multiple modules, it makes sense to move it to fileutils. Requires making sure that _posixsubprocess is compiled with the appropriate Py_BUIILD_CORE_BUILTIN macro.
This commit is contained in:
parent
8b2ff4c03d
commit
7992579cd2
7 changed files with 83 additions and 80 deletions
3
setup.py
3
setup.py
|
@ -950,7 +950,8 @@ class PyBuildExt(build_ext):
|
|||
self.add(Extension('_csv', ['_csv.c']))
|
||||
|
||||
# POSIX subprocess module helper.
|
||||
self.add(Extension('_posixsubprocess', ['_posixsubprocess.c']))
|
||||
self.add(Extension('_posixsubprocess', ['_posixsubprocess.c'],
|
||||
extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
|
||||
|
||||
def detect_test_extensions(self):
|
||||
# Python C API test module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue