mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bpo-41111: xxlimited.c defines Py_LIMITED_API (GH-25151)
xxlimited.c and xxlimited_35.c now define the Py_LIMITED_API macro, rather than having to do it in the build recipe. Co-authored-by: Hai Shi <shihai1992@gmail.com>
This commit is contained in:
parent
9bb5658bd1
commit
240bcf82a1
5 changed files with 7 additions and 11 deletions
6
setup.py
6
setup.py
|
@ -1865,10 +1865,8 @@ class PyBuildExt(build_ext):
|
|||
## self.add(Extension('xx', ['xxmodule.c']))
|
||||
|
||||
# Limited C API
|
||||
self.add(Extension('xxlimited', ['xxlimited.c'],
|
||||
define_macros=[('Py_LIMITED_API', '0x030a0000')]))
|
||||
self.add(Extension('xxlimited_35', ['xxlimited_35.c'],
|
||||
define_macros=[('Py_LIMITED_API', '0x03050000')]))
|
||||
self.add(Extension('xxlimited', ['xxlimited.c']))
|
||||
self.add(Extension('xxlimited_35', ['xxlimited_35.c']))
|
||||
|
||||
def detect_tkinter_fromenv(self):
|
||||
# Build _tkinter using the Tcl/Tk locations specified by
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue