Use pip module instead of pip itself 93/5093/2
authorJamo Luhrsen <jluhrsen@redhat.com>
Tue, 6 Jun 2017 05:05:30 +0000 (22:05 -0700)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 6 Jun 2017 15:19:18 +0000 (11:19 -0400)
when the filepath is very long and pip is run in a
virtualenv, the filepath is truncated and the
commands don't work. Some ODL CSIT jobs have
this problem. They use the lftools to upload their
logs so these specific CSIT jobs are not getting
their logs updloaded.

Change-Id: I0b4c0ac785fe6e2fbd183c1b9332cc6fd7b0ecaa
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
shell/lftools-install.sh

index 39f060d..8d4a4a3 100644 (file)
@@ -17,9 +17,10 @@ set -e -o pipefail
 virtualenv "$WORKSPACE/.virtualenvs/lftools"
 # shellcheck source=./.virtualenvs/lftools/bin/activate disable=SC1091
 source "$WORKSPACE/.virtualenvs/lftools/bin/activate"
-pip install --quiet --upgrade pip
-pip install --quiet --upgrade pipdeptree
-pip install --quiet --upgrade "lftools<1.0.0"
+PYTHON="$WORKSPACE/.virtualenvs/lftools/bin/python"
+$PYTHON -m pip install --quiet --upgrade pip
+$PYTHON -m pip install --quiet --upgrade pipdeptree
+$PYTHON -m pip install --quiet --upgrade "lftools<1.0.0"
 
 echo "----> Pip Dependency Tree"
 pipdeptree