From 8c30a710e64223dbac70dae0a73ad4d8bd728786 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sat, 4 Dec 2010 18:36:03 +0000 Subject: [PATCH] Silence compile error --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 6d2d3ac5df..09cc8a911f 100644 --- a/setup.py +++ b/setup.py @@ -1579,9 +1579,10 @@ class PyBuildExt(build_ext): ## # Uncomment these lines if you want to play with xxmodule.c ## ext = Extension('xx', ['xxmodule.c']) ## self.extensions.append(ext) - ext = Extension('xxlimited', ['xxlimited.c'], - define_macros=[('Py_LIMITED_API', 1)]) - 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: -- 2.40.0