Issue #18517: Move definition of "xxlimited" extension to detect_modules().

This commit is contained in:
Ned Deily 2013-08-01 23:51:27 -07:00
parent bd143c3760
commit cd3d8fb825
1 changed files with 9 additions and 8 deletions

View File

@ -1525,6 +1525,15 @@ class PyBuildExt(build_ext):
if '_tkinter' not in [e.name for e in self.extensions]:
missing.append('_tkinter')
## # Uncomment these lines if you want to play with xxmodule.c
## ext = Extension('xx', ['xxmodule.c'])
## self.extensions.append(ext)
if 'd' not in sys.abiflags:
ext = Extension('xxlimited', ['xxlimited.c'],
define_macros=[('Py_LIMITED_API', 1)])
self.extensions.append(ext)
return missing
def detect_tkinter_darwin(self, inc_dirs, lib_dirs):
@ -1722,14 +1731,6 @@ class PyBuildExt(build_ext):
)
self.extensions.append(ext)
## # Uncomment these lines if you want to play with xxmodule.c
## ext = Extension('xx', ['xxmodule.c'])
## self.extensions.append(ext)
if 'd' not in sys.abiflags:
ext = Extension('xxlimited', ['xxlimited.c'],
define_macros=[('Py_LIMITED_API', 1)])
self.extensions.append(ext)
# XXX handle these, but how to detect?
# *** Uncomment and edit for PIL (TkImaging) extension only:
# -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \