mirror of
https://github.com/facebook/sapling.git
synced 2025-01-04 03:06:30 +03:00
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).
This commit is contained in:
parent
60d6ae885a
commit
b9e096fd36
4
setup.py
4
setup.py
@ -63,6 +63,8 @@ else:
|
|||||||
raise SystemExit(
|
raise SystemExit(
|
||||||
"Couldn't import standard bz2 (incomplete Python install).")
|
"Couldn't import standard bz2 (incomplete Python install).")
|
||||||
|
|
||||||
|
ispypy = "PyPy" in sys.version
|
||||||
|
|
||||||
import os, stat, subprocess, time
|
import os, stat, subprocess, time
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
@ -276,7 +278,7 @@ class hgbuildmo(build):
|
|||||||
|
|
||||||
|
|
||||||
class hgdist(Distribution):
|
class hgdist(Distribution):
|
||||||
pure = 0
|
pure = ispypy
|
||||||
|
|
||||||
global_options = Distribution.global_options + \
|
global_options = Distribution.global_options + \
|
||||||
[('pure', None, "use pure (slow) Python "
|
[('pure', None, "use pure (slow) Python "
|
||||||
|
Loading…
Reference in New Issue
Block a user