From e9b89568a2a24e8d5b8827d8f8e381d328f6c9c7 Mon Sep 17 00:00:00 2001 From: Sergey Skripnick Date: Fri, 15 May 2015 15:27:54 +0300 Subject: [PATCH] Fix installation on python3-only systems Change-Id: I8dd10ce459d9d3261317e098454f3e1adee666cd Closes-Bug: 1455466 --- install_rally.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install_rally.sh b/install_rally.sh index e51722aff8..a089e69067 100755 --- a/install_rally.sh +++ b/install_rally.sh @@ -22,7 +22,9 @@ ASKCONFIRMATION=1 OVERWRITEDIR="ask" USEVIRTUALENV="yes" -PYTHON="$(which python)" +PYTHON2="$(which python || true)" +PYTHON3="$(which python3 || true)" +PYTHON=${PYTHON2:-$PYTHON3} BASE_PIP_URL="https://pypi.python.org/simple" VIRTUALENV_191_URL="https://raw.github.com/pypa/virtualenv/1.9.1/virtualenv.py" VIRTUALENV_CMD="virtualenv"