bpo-36097: Use only public C-API in the_xxsubinterpreters module (adding as necessary). (gh-12359)

This commit is contained in:
Eric Snow 2019-03-15 16:35:46 -06:00 committed by GitHub
parent 842a2f07f2
commit c11183cdcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 483 additions and 393 deletions

View file

@ -784,9 +784,7 @@ class PyBuildExt(build_ext):
self.add(Extension('syslog', ['syslogmodule.c']))
# Python interface to subinterpreter C-API.
self.add(Extension('_xxsubinterpreters',
['_xxsubinterpretersmodule.c'],
define_macros=[('Py_BUILD_CORE', '')]))
self.add(Extension('_xxsubinterpreters', ['_xxsubinterpretersmodule.c']))
#
# Here ends the simple stuff. From here on, modules need certain