From: Thanh Ha Date: Sat, 27 May 2017 16:51:18 +0000 (-0400) Subject: Use pipdeptree instead of freeze X-Git-Tag: v0.3.0~16 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=afb0041408b64e20cbf63ad8e0b78cf238979644;p=releng%2Fglobal-jjb.git Use pipdeptree instead of freeze pipdeptree provides better output than pip freeze with more information. Also run pip installs in quiet mode to cut down on log spam. It will still print out WARNINGS, ERROR, and CRITICAL log messages. Change-Id: I3f7e687ccdea5fcb5c749328c1e387e6d99d9fed Signed-off-by: Thanh Ha --- diff --git a/shell/jjb-install.sh b/shell/jjb-install.sh index af2f42c5..8baed832 100644 --- a/shell/jjb-install.sh +++ b/shell/jjb-install.sh @@ -17,6 +17,9 @@ set -e -o pipefail virtualenv "$WORKSPACE/.virtualenvs/jjb" # shellcheck source=./.virtualenvs/jjb/bin/activate disable=SC1091 source "$WORKSPACE/.virtualenvs/jjb/bin/activate" -pip install --upgrade pip -pip install --upgrade "jenkins-job-builder==$JJB_VERSION" -pip freeze +pip install --quiet --upgrade pip +pip install --quiet --upgrade pipdeptree +pip install --quiet --upgrade "jenkins-job-builder==$JJB_VERSION" + +echo "----> Pip Dependency Tree" +pipdeptree diff --git a/shell/lftools-install.sh b/shell/lftools-install.sh index 7ae9618d..39f060da 100644 --- a/shell/lftools-install.sh +++ b/shell/lftools-install.sh @@ -17,6 +17,9 @@ 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 +pip install --quiet --upgrade pip +pip install --quiet --upgrade pipdeptree +pip install --quiet --upgrade "lftools<1.0.0" + +echo "----> Pip Dependency Tree" +pipdeptree