From 63d7528a39e06ad4a4173fa11d4d51b6920c1713 Mon Sep 17 00:00:00 2001 From: Jamo Luhrsen Date: Mon, 5 Jun 2017 22:05:30 -0700 Subject: [PATCH] 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 --- shell/lftools-install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.16.6