Record pip version in our python image builds

This is useful for debugging when pip does updates and we need to be
sure that we ran with a new (or old) version of pip.

Change-Id: I556bb68e255ee0bdbcbd2c72dc537e2a6c7d64b6
This commit is contained in:
Clark Boylan 2022-10-19 11:11:52 -07:00
parent 0502e121fa
commit e609c63dff
4 changed files with 6 additions and 2 deletions

View File

@ -31,7 +31,7 @@ RUN apt-get update \
# Upgrade pip to fix wheel cache for locally built wheels.
# See https://github.com/pypa/pip/issues/6852
RUN pip install -U pip
RUN pip install -U pip && pip --version
# Undo debian changes to openssl.cnf that are too aggressive
COPY openssl.cnf /etc/ssl/openssl.cnf

View File

@ -45,4 +45,4 @@ RUN dpkg -i /tmp/python3-dev_4.0.0_all.deb \
# Upgrade pip to fix wheel cache for locally built wheels
# See https://github.com/pypa/pip/issues/6852
RUN pip install -U pip
RUN pip install -U pip && pip --version

View File

@ -91,6 +91,8 @@ done
python3 -m venv /tmp/venv
/tmp/venv/bin/pip install -U pip wheel build
/tmp/venv/bin/pip --version
# If there is an upper-constraints.txt file in the source tree,
# use it in the pip commands.
if [ -f /tmp/src/upper-constraints.txt ] ; then

View File

@ -24,6 +24,8 @@ if [ -f /output/upper-constraints.txt ] ; then
CONSTRAINTS="-c /output/upper-constraints.txt"
fi
pip --version
# If a requirements.txt file exists,
# install it directly so that people can use git url syntax
# to do things like pick up patched but unreleased versions