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

Skip to content

Commit 8c30a71

Browse files
committed
Silence compile error
1 parent 8c647cd commit 8c30a71

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,9 +1579,10 @@ def detect_tkinter(self, inc_dirs, lib_dirs):
15791579
## # Uncomment these lines if you want to play with xxmodule.c
15801580
## ext = Extension('xx', ['xxmodule.c'])
15811581
## self.extensions.append(ext)
1582-
ext = Extension('xxlimited', ['xxlimited.c'],
1583-
define_macros=[('Py_LIMITED_API', 1)])
1584-
self.extensions.append(ext)
1582+
if 'd' not in sys.abiflags:
1583+
ext = Extension('xxlimited', ['xxlimited.c'],
1584+
define_macros=[('Py_LIMITED_API', 1)])
1585+
self.extensions.append(ext)
15851586

15861587
# XXX handle these, but how to detect?
15871588
# *** Uncomment and edit for PIL (TkImaging) extension only:

0 commit comments

Comments
 (0)