From 7c85473fa6ca551cd7569cdcc5097152b384426a Mon Sep 17 00:00:00 2001 From: "Lott, Christopher (cl778h)" Date: Thu, 23 Jan 2020 14:07:42 -0500 Subject: [PATCH] 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) --- releasenotes/notes/python-tools-install-log-c7a79489fcb6b4f1.yaml | 7 +++++++ shell/python-tools-install.sh | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 releasenotes/notes/python-tools-install-log-c7a79489fcb6b4f1.yaml 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 -- 2.16.6