commit | 23c952fe08b2e7ea0f8d7673f45b17547e331f4b | [log] [tgz] |
---|---|---|
author | Kirill Simonov <xi@resolvent.net> | Sun May 29 16:13:17 2011 +0000 |
committer | Kirill Simonov <xi@resolvent.net> | Sun May 29 16:13:17 2011 +0000 |
tree | d00bf3c534831dcbc29f8ce9f0972638af5bf14e | |
parent | 20609edc91c942833fe35740e391c12c89f4742a [diff] |
Do not attempt to build extensions on platforms other than CPython.
diff --git a/setup.py b/setup.py index 3e34cfe..fbc6795 100644 --- a/setup.py +++ b/setup.py
@@ -122,6 +122,8 @@ 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