Browse Source
bpo-41111: Don't build xxlimited with Py_TRACE_REFS macro (GH-25180)
pull/25215/head
Hai Shi
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
3 deletions
-
setup.py
|
|
|
@ -1864,9 +1864,10 @@ class PyBuildExt(build_ext): |
|
|
|
## # Uncomment these lines if you want to play with xxmodule.c |
|
|
|
## self.add(Extension('xx', ['xxmodule.c'])) |
|
|
|
|
|
|
|
# Limited C API |
|
|
|
self.add(Extension('xxlimited', ['xxlimited.c'])) |
|
|
|
self.add(Extension('xxlimited_35', ['xxlimited_35.c'])) |
|
|
|
# The limited C API is not compatible with the Py_TRACE_REFS macro. |
|
|
|
if not sysconfig.get_config_var('Py_TRACE_REFS'): |
|
|
|
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 |
|
|
|
|