Tox is called from system python2
[releng/global-jjb.git] / shell / tox-install.sh
index 9ad3329..0434b3a 100644 (file)
@@ -28,11 +28,8 @@ if [[ -f /etc/lsb-release ]]; then
 fi
 
 if [[ $done != "True" ]]; then
-    if [[ $PYTHON == "python2" ]]; then
-        $PYTHON -m pip install --user --quiet --upgrade tox tox-pyenv virtualenv more-itertools~=5.0.0
-    else
-        $PYTHON -m pip install --user --quiet --upgrade tox tox-pyenv virtualenv
-    fi
+        python -m pip install --user --quiet --upgrade tox tox-pyenv virtualenv more-itertools~=5.0.0
+        python3 -m pip install --user --quiet --upgrade tox tox-pyenv virtualenv
 fi
 
 # installs are silent, show version details in log