From: Jamo Luhrsen Date: Tue, 6 Jun 2017 05:05:30 +0000 (-0700) Subject: Use pip module instead of pip itself X-Git-Tag: v0.3.0~14 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F93%2F5093%2F2;p=releng%2Fglobal-jjb.git Use pip module instead of pip itself 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 --- diff --git a/shell/lftools-install.sh b/shell/lftools-install.sh index 39f060da..8d4a4a3d 100644 --- a/shell/lftools-install.sh +++ b/shell/lftools-install.sh @@ -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