Only install mercurial and bazaar if using CPython

This commit is contained in:
ZyX 2014-07-10 19:29:56 +04:00
parent 6c0018b7a3
commit 19195159ad
1 changed files with 4 additions and 2 deletions

View File

@ -3,8 +3,10 @@ pip install .
pip install psutil
if python -c 'import sys; sys.exit(1 * (sys.version_info[0] != 2))' ; then
# Python 2
pip install mercurial
pip install --allow-external bzr --allow-unverified bzr bzr
if python -c 'import platform, sys; sys.exit(1 - (platform.python_implementation() == "CPython"))' ; then
pip install mercurial
pip install --allow-external bzr --allow-unverified bzr bzr
fi
if python -c 'import sys; sys.exit(1 * (sys.version_info[1] >= 7))' ; then
# Python 2.6
pip install unittest2 argparse