summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-12-04 18:36:03 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-12-04 18:36:03 +0000
commit8c30a710e64223dbac70dae0a73ad4d8bd728786 (patch)
treeee32669259a48a5622db2c96323739d0c364db46 /setup.py
parent8c647cd73759601beba96e54720bf75b5d09ab19 (diff)
downloadcpython-git-8c30a710e64223dbac70dae0a73ad4d8bd728786.tar.gz
Silence compile error
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py7
1 files 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: