From b9e096fd362be37ce53182117ba421232367b6b9 Mon Sep 17 00:00:00 2001 From: Joan Massich Date: Sun, 22 Feb 2015 15:40:36 +0100 Subject: [PATCH] setup.py: do not install c extensions on pypy These extensions are slower on pypy because pypy has a JIT compiler. And also, they often do not compile (it depends on the pypy configuration). --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f93d8be5b3..a6ce71e927 100644 --- a/setup.py +++ b/setup.py @@ -63,6 +63,8 @@ else: raise SystemExit( "Couldn't import standard bz2 (incomplete Python install).") +ispypy = "PyPy" in sys.version + import os, stat, subprocess, time import re import shutil @@ -276,7 +278,7 @@ class hgbuildmo(build): class hgdist(Distribution): - pure = 0 + pure = ispypy global_options = Distribution.global_options + \ [('pure', None, "use pure (slow) Python "