summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-03-20 09:43:29 -0400
committerNed Batchelder <ned@nedbatchelder.com>2012-03-20 09:43:29 -0400
commit2017d360f977e953030c558ab57295741e2160bd (patch)
tree2d18c15bed5362d19a4e7b8d0e9fd2b9b9b87254 /setup.py
parent53357077986f061b6a1fbe2a15cde14c4da6dae8 (diff)
downloadpython-coveragepy-2017d360f977e953030c558ab57295741e2160bd.tar.gz
All the tests pass under PyPy: sys has a bogus __file__, Unicode is 4-byte, and pypy inserts an extra stack frame into tracebacks.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 71c4342..bad1c04 100644
--- a/setup.py
+++ b/setup.py
@@ -110,7 +110,7 @@ if sys.platform.startswith('java'):
# Jython can't compile C extensions
compile_extension = False
-if hasattr(sys, "pypy_version_info"):
+if '__pypy__' in sys.builtin_module_names:
# Pypy can't compile C extensions
compile_extension = False