Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b467d15

Browse files
committed
Issue #18517: merge from 3.3
2 parents 970a87f + cd3d8fb commit b467d15

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

setup.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)