[Python-checkins] bpo-41111: Don't build xxlimited with Py_TRACE_REFS macro (GH-25180)
vstinner
webhook-mailer at python.org
Tue Apr 6 08:55:32 EDT 2021
https://github.com/python/cpython/commit/5787ba4a45492e232f5470c7d2e93763198e4b22
commit: 5787ba4a45492e232f5470c7d2e93763198e4b22
branch: master
author: Hai Shi <shihai1992 at gmail.com>
committer: vstinner <vstinner at python.org>
date: 2021-04-06T14:55:13+02:00
summary:
bpo-41111: Don't build xxlimited with Py_TRACE_REFS macro (GH-25180)
files:
M setup.py
diff --git a/setup.py b/setup.py
index edf3cb4f230b5..d011936279490 100644
--- a/setup.py
+++ b/setup.py
@@ -1864,9 +1864,10 @@ def detect_modules(self):
## # 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
More information about the Python-checkins
mailing list