mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363)
* All internal header files now require Py_BUILD_CORE or Py_BUILD_CORE_BUILTIN to be defined. * _json.c is now compiled with Py_BUILD_CORE_BUILTIN to access pycore_accu.h header. * Add an example to Modules/Setup to show how to build _json as a built-in module; it requires non trivial compiler options.
This commit is contained in:
parent
0a18e0510a
commit
130893debf
16 changed files with 48 additions and 13 deletions
4
setup.py
4
setup.py
|
@ -678,7 +678,9 @@ class PyBuildExt(build_ext):
|
|||
# atexit
|
||||
exts.append( Extension("atexit", ["atexitmodule.c"]) )
|
||||
# _json speedups
|
||||
exts.append( Extension("_json", ["_json.c"]) )
|
||||
exts.append( Extension("_json", ["_json.c"],
|
||||
# pycore_accu.h requires Py_BUILD_CORE_BUILTIN
|
||||
extra_compile_args=['-DPy_BUILD_CORE_BUILTIN']) )
|
||||
# Python C API test module
|
||||
exts.append( Extension('_testcapi', ['_testcapimodule.c'],
|
||||
depends=['testcapi_long.h']) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue