File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,9 @@ RUN set -ex \
51
51
# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
52
52
# https://github.com/docker-library/python/pull/143#issuecomment-241032683
53
53
&& pip install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
54
- # then we use "pip list " to ensure we don't have more than one pip version installed
54
+ # then we use "pip freeze " to ensure we don't have more than one pip version installed
55
55
# https://github.com/docker-library/python/pull/100
56
- && [ "$(pip list |tac|tac| awk -F '[ ()]+ ' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
56
+ && [ "$(pip freeze --all |tac|tac| awk -F '== ' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
57
57
\
58
58
&& find /usr/local -depth \
59
59
\( \
Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ RUN set -ex \
68
68
# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
69
69
# https://github.com/docker-library/python/pull/143#issuecomment-241032683
70
70
&& pip install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
71
- # then we use "pip list " to ensure we don't have more than one pip version installed
71
+ # then we use "pip freeze " to ensure we don't have more than one pip version installed
72
72
# https://github.com/docker-library/python/pull/100
73
- && [ "$(pip list |tac|tac| awk -F '[ ()]+ ' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
73
+ && [ "$(pip freeze --all |tac|tac| awk -F '== ' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
74
74
\
75
75
&& find /usr/local -depth \
76
76
\( \
Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ RUN set -ex \
66
66
# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
67
67
# https://github.com/docker-library/python/pull/143#issuecomment-241032683
68
68
&& pip install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
69
- # then we use "pip list " to ensure we don't have more than one pip version installed
69
+ # then we use "pip freeze " to ensure we don't have more than one pip version installed
70
70
# https://github.com/docker-library/python/pull/100
71
- && [ "$(pip list |tac|tac| awk -F '[ ()]+ ' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
71
+ && [ "$(pip freeze --all |tac|tac| awk -F '== ' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
72
72
\
73
73
&& find /usr/local -depth \
74
74
\( \
Original file line number Diff line number Diff line change @@ -51,9 +51,9 @@ RUN set -ex \
51
51
# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
52
52
# https://github.com/docker-library/python/pull/143#issuecomment-241032683
53
53
&& pip install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
54
- # then we use "pip list " to ensure we don't have more than one pip version installed
54
+ # then we use "pip freeze " to ensure we don't have more than one pip version installed
55
55
# https://github.com/docker-library/python/pull/100
56
- && [ "$(pip list |tac|tac| awk -F '[ ()]+ ' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
56
+ && [ "$(pip freeze --all |tac|tac| awk -F '== ' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
57
57
\
58
58
&& find /usr/local -depth \
59
59
\( \
You can’t perform that action at this time.
0 commit comments