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>
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