Skip to content

Commit

Permalink
bpo-41111: Don't build xxlimited with Py_TRACE_REFS macro (pythonGH-2…
Browse files Browse the repository at this point in the history
  • Loading branch information
shihai1991 committed Apr 6, 2021
1 parent 354b015 commit 5787ba4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5787ba4

Please sign in to comment.