Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Commit d91a7d8

Browse files
committed
Add a small test to ensure that the pip version we installed is the pip
we got * docker-library/python#121 682708e
1 parent 864979f commit d91a7d8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

2.7/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ RUN set -ex \
3333
&& make install \
3434
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
3535
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
36+
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
3637
&& find /usr/local \
3738
\( -type d -a -name test -o -name tests \) \
3839
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \

3.5/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ RUN set -ex \
3232
&& make -j$(getconf _NPROCESSORS_ONLN) \
3333
&& make install \
3434
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
35+
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
3536
&& find /usr/local -depth \
3637
\( \
3738
\( -type d -a -name test -o -name tests \) \

0 commit comments

Comments
 (0)