Do not attempt to build extensions on platforms other than CPython.

This commit is contained in:
Kirill Simonov 2011-05-29 16:13:17 +00:00
parent 20609edc91
commit 23c952fe08

View File

@ -122,6 +122,8 @@ class Distribution(_Distribution):
return False
def ext_status(self, ext):
if 'Java' in sys.version or 'IronPython' in sys.version or 'PyPy' in sys.version:
return False
if isinstance(ext, Extension):
with_ext = getattr(self, ext.attr_name)
return with_ext