# HG changeset patch # User Joan Massich # Date 2015-02-22 14:40:36 # Node ID 390410a6545d9088dc84392009f51500e3935a1c # Parent 8fe5fc8d7b8e4eec6d392c9dec0a4385d4270082 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). diff --git a/setup.py b/setup.py --- 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 "