summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxi <xi@18f92427-320e-0410-9341-c67f048884a3>2011-05-29 16:13:17 +0000
committerxi <xi@18f92427-320e-0410-9341-c67f048884a3>2011-05-29 16:13:17 +0000
commitc30f23e669b9938520fce404d3ad7ffb2e7259f9 (patch)
treed00bf3c534831dcbc29f8ce9f0972638af5bf14e
parent2c4428bbe60e98cd7708b45161cac5fd0f8bc14b (diff)
downloadpyyaml-c30f23e669b9938520fce404d3ad7ffb2e7259f9.tar.gz
Do not attempt to build extensions on platforms other than CPython.
git-svn-id: http://svn.pyyaml.org/pyyaml/trunk@376 18f92427-320e-0410-9341-c67f048884a3
-rw-r--r--setup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 3e34cfe..fbc6795 100644
--- a/setup.py
+++ b/setup.py
@@ -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