mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
bpo-36635: Add _testinternalcapi module (GH-12841)
Add a new _testinternalcapi module to test the internal C API. Move _Py_GetConfigsAsDict() function to the internal C API: _testembed now uses _testinternalcapi to access the function.
This commit is contained in:
parent
11efd79076
commit
23bace26ec
13 changed files with 172 additions and 49 deletions
4
setup.py
4
setup.py
|
@ -814,6 +814,10 @@ class PyBuildExt(build_ext):
|
|||
self.add(Extension('_testcapi', ['_testcapimodule.c'],
|
||||
depends=['testcapi_long.h']))
|
||||
|
||||
# Python Internal C API test module
|
||||
self.add(Extension('_testinternalcapi', ['_testinternalcapi.c'],
|
||||
extra_compile_args=['-D Py_BUILD_CORE_MODULE']))
|
||||
|
||||
# Python PEP-3118 (buffer protocol) test module
|
||||
self.add(Extension('_testbuffer', ['_testbuffer.c']))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue