]> granicus.if.org Git - python/commit
bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363)
authorVictor Stinner <vstinner@redhat.com>
Fri, 9 Nov 2018 12:03:37 +0000 (13:03 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Nov 2018 12:03:37 +0000 (13:03 +0100)
commit130893debfd97c70e3a89d9ba49892f53e6b9d79
tree35b45b8939a9ab75ec470f0defb37d1ee1f8c77e
parent0a18e0510a145427d8ff1864a011c81ea02cdcd4
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.
16 files changed:
Include/internal/pycore_accu.h
Include/internal/pycore_atomic.h
Include/internal/pycore_ceval.h
Include/internal/pycore_condvar.h
Include/internal/pycore_context.h
Include/internal/pycore_getopt.h
Include/internal/pycore_gil.h
Include/internal/pycore_hamt.h
Include/internal/pycore_hash.h
Include/internal/pycore_lifecycle.h
Include/internal/pycore_mem.h
Include/internal/pycore_pathconfig.h
Include/internal/pycore_state.h
Include/internal/pycore_warnings.h
Modules/Setup
setup.py