From: Lott, Christopher (cl778h) Date: Thu, 23 Jan 2020 19:07:42 +0000 (-0500) Subject: Add pip freeze to python-tools-install X-Git-Tag: v0.50.0^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=7c85473fa6ca551cd7569cdcc5097152b384426a;p=releng%2Fglobal-jjb.git Add pip freeze to python-tools-install Package version details support detection of changes in dependencies like pip Change-Id: Ic1b8a943c03e497aa1af85370d16e2bc5bc2c081 Signed-off-by: Lott, Christopher (cl778h) --- diff --git a/releasenotes/notes/python-tools-install-log-c7a79489fcb6b4f1.yaml b/releasenotes/notes/python-tools-install-log-c7a79489fcb6b4f1.yaml new file mode 100644 index 00000000..6871fe63 --- /dev/null +++ b/releasenotes/notes/python-tools-install-log-c7a79489fcb6b4f1.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + Extend script python-tools-install.sh to invoke pip freeze. + This shows installed package versions in the log and allows + detecting changes like the Jan 2020 release of pip v20 that + broke various assumptions and behaviors. diff --git a/shell/python-tools-install.sh b/shell/python-tools-install.sh index 5c9dc62b..2b2b0f80 100644 --- a/shell/python-tools-install.sh +++ b/shell/python-tools-install.sh @@ -37,6 +37,8 @@ EOF python3 -m pip install --user --quiet --upgrade pip python3 -m pip install --user --quiet --no-warn-script-location --upgrade setuptools python3 -m pip install --user --quiet --no-warn-script-location --upgrade --upgrade-strategy eager -r "$requirements_file" + # installs are silent, show version details in log + python3 -m pip freeze rm -rf "$requirements_file" touch /tmp/pre-build-complete fi