]> granicus.if.org Git - python/commitdiff
Silence compile error
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 4 Dec 2010 18:36:03 +0000 (18:36 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 4 Dec 2010 18:36:03 +0000 (18:36 +0000)
setup.py

index 6d2d3ac5df2df31df8adcbfe12d53a73bacce093..09cc8a911fbe7d1f9b7028776224eac4016ca786 100644 (file)
--- 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: