X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Flftools-install.sh;h=f458fd67e76715364bfe31b9b1fdf1b0434f2516;hb=a99cfe8b7c3e3b33cf9f210a90c50ea65128b30e;hp=06fbe03b27ef6f520e7bc9919f63d7eebb447aa1;hpb=0cd4f5d8c5fc52e167cd19ab00bddec4f7f0c190;p=releng%2Fglobal-jjb.git diff --git a/shell/lftools-install.sh b/shell/lftools-install.sh index 06fbe03b..f458fd67 100644 --- a/shell/lftools-install.sh +++ b/shell/lftools-install.sh @@ -1,5 +1,5 @@ #!/bin/bash -# @License EPL-1.0 +# SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. # @@ -11,11 +11,17 @@ echo "---> lftools-install.sh" # Ensure we fail the job if any steps fail. -set -eu -o pipefail +# DO NOT set -u as virtualenv's activate script has unbound variables +set -e -o pipefail -virtualenv "$WORKSPACE/.virtualenvs/lftools" -# shellcheck source=./.virtualenvs/lftools/bin/activate disable=SC1091 -source "$WORKSPACE/.virtualenvs/lftools/bin/activate" -pip install --upgrade pip -pip install --upgrade "lftools<1.0.0" -pip freeze +virtualenv --quiet "/tmp/v/lftools" +# shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091 +source "/tmp/v/lftools/bin/activate" +pip install --quiet --upgrade pip +pip install --quiet --upgrade "lftools<1.0.0" + +# pipdeptree prints out a lot of information because lftools pulls in many +# dependencies. Let's only print it if we want to debug. +# echo "----> Pip Dependency Tree" +# pip install --quiet --upgrade pipdeptree +# pipdeptree