We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 354b015 commit 5787ba4Copy full SHA for 5787ba4
setup.py
@@ -1864,9 +1864,10 @@ def detect_modules(self):
1864
## # Uncomment these lines if you want to play with xxmodule.c
1865
## self.add(Extension('xx', ['xxmodule.c']))
1866
1867
- # Limited C API
1868
- self.add(Extension('xxlimited', ['xxlimited.c']))
1869
- 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']))
1870
+ self.add(Extension('xxlimited_35', ['xxlimited_35.c']))
1871
1872
def detect_tkinter_fromenv(self):
1873
# Build _tkinter using the Tcl/Tk locations specified by
0 commit comments