@@ -1534,6 +1534,15 @@ class db_found(Exception): pass
15341534 if '_tkinter' not in [e .name for e in self .extensions ]:
15351535 missing .append ('_tkinter' )
15361536
1537+ ## # Uncomment these lines if you want to play with xxmodule.c
1538+ ## ext = Extension('xx', ['xxmodule.c'])
1539+ ## self.extensions.append(ext)
1540+
1541+ if 'd' not in sys .abiflags :
1542+ ext = Extension ('xxlimited' , ['xxlimited.c' ],
1543+ define_macros = [('Py_LIMITED_API' , 1 )])
1544+ self .extensions .append (ext )
1545+
15371546 return missing
15381547
15391548 def detect_tkinter_darwin (self , inc_dirs , lib_dirs ):
@@ -1731,14 +1740,6 @@ def detect_tkinter(self, inc_dirs, lib_dirs):
17311740 )
17321741 self .extensions .append (ext )
17331742
1734- ## # Uncomment these lines if you want to play with xxmodule.c
1735- ## ext = Extension('xx', ['xxmodule.c'])
1736- ## self.extensions.append(ext)
1737- if 'd' not in sys .abiflags :
1738- ext = Extension ('xxlimited' , ['xxlimited.c' ],
1739- define_macros = [('Py_LIMITED_API' , 1 )])
1740- self .extensions .append (ext )
1741-
17421743 # XXX handle these, but how to detect?
17431744 # *** Uncomment and edit for PIL (TkImaging) extension only:
17441745 # -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \
0 commit comments