File tree Expand file tree Collapse file tree 24 files changed +142
-28
lines changed
windows/windowsservercore
windows/windowsservercore Expand file tree Collapse file tree 24 files changed +142
-28
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,12 @@ RUN set -ex \
47
47
&& wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
48
48
&& python2 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
49
49
&& rm /tmp/get-pip.py \
50
- && pip install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
50
+ # we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python
51
+ # ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
52
+ # https://github.com/docker-library/python/pull/143#issuecomment-241032683
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
55
+ # https://github.com/docker-library/python/pull/100
51
56
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
52
57
\
53
58
&& find /usr/local -depth \
Original file line number Diff line number Diff line change @@ -64,7 +64,12 @@ RUN set -ex \
64
64
&& wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
65
65
&& python2 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
66
66
&& rm /tmp/get-pip.py \
67
- && pip install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
67
+ # we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python
68
+ # ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
69
+ # https://github.com/docker-library/python/pull/143#issuecomment-241032683
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
72
+ # https://github.com/docker-library/python/pull/100
68
73
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
69
74
\
70
75
&& find /usr/local -depth \
Original file line number Diff line number Diff line change @@ -60,7 +60,12 @@ RUN set -ex \
60
60
&& wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
61
61
&& python2 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
62
62
&& rm /tmp/get-pip.py \
63
- && pip install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
63
+ # we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python
64
+ # ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
65
+ # https://github.com/docker-library/python/pull/143#issuecomment-241032683
66
+ && pip install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
67
+ # then we use "pip list" to ensure we don't have more than one pip version installed
68
+ # https://github.com/docker-library/python/pull/100
64
69
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
65
70
\
66
71
&& find /usr/local -depth \
Original file line number Diff line number Diff line change @@ -47,7 +47,12 @@ RUN set -ex \
47
47
&& wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
48
48
&& python2 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
49
49
&& rm /tmp/get-pip.py \
50
- && pip install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
50
+ # we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python
51
+ # ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
52
+ # https://github.com/docker-library/python/pull/143#issuecomment-241032683
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
55
+ # https://github.com/docker-library/python/pull/100
51
56
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
52
57
\
53
58
&& find /usr/local -depth \
Original file line number Diff line number Diff line change @@ -56,7 +56,12 @@ RUN set -ex \
56
56
&& python3 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
57
57
&& rm /tmp/get-pip.py \
58
58
; fi \
59
- && pip3 install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
59
+ # we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python
60
+ # ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
61
+ # https://github.com/docker-library/python/pull/143#issuecomment-241032683
62
+ && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
63
+ # then we use "pip list" to ensure we don't have more than one pip version installed
64
+ # https://github.com/docker-library/python/pull/100
60
65
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
61
66
\
62
67
&& find /usr/local -depth \
Original file line number Diff line number Diff line change @@ -73,7 +73,12 @@ RUN set -ex \
73
73
&& python3 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
74
74
&& rm /tmp/get-pip.py \
75
75
; fi \
76
- && pip3 install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
76
+ # we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python
77
+ # ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
78
+ # https://github.com/docker-library/python/pull/143#issuecomment-241032683
79
+ && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
80
+ # then we use "pip list" to ensure we don't have more than one pip version installed
81
+ # https://github.com/docker-library/python/pull/100
77
82
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
78
83
\
79
84
&& find /usr/local -depth \
Original file line number Diff line number Diff line change @@ -69,7 +69,12 @@ RUN set -ex \
69
69
&& python3 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
70
70
&& rm /tmp/get-pip.py \
71
71
; fi \
72
- && pip3 install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
72
+ # we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python
73
+ # ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
74
+ # https://github.com/docker-library/python/pull/143#issuecomment-241032683
75
+ && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
76
+ # then we use "pip list" to ensure we don't have more than one pip version installed
77
+ # https://github.com/docker-library/python/pull/100
73
78
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
74
79
\
75
80
&& find /usr/local -depth \
Original file line number Diff line number Diff line change @@ -56,7 +56,12 @@ RUN set -ex \
56
56
&& python3 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
57
57
&& rm /tmp/get-pip.py \
58
58
; fi \
59
- && pip3 install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
59
+ # we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python
60
+ # ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
61
+ # https://github.com/docker-library/python/pull/143#issuecomment-241032683
62
+ && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
63
+ # then we use "pip list" to ensure we don't have more than one pip version installed
64
+ # https://github.com/docker-library/python/pull/100
60
65
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
61
66
\
62
67
&& find /usr/local -depth \
Original file line number Diff line number Diff line change @@ -56,7 +56,12 @@ RUN set -ex \
56
56
&& python3 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
57
57
&& rm /tmp/get-pip.py \
58
58
; fi \
59
- && pip3 install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
59
+ # we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python
60
+ # ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
61
+ # https://github.com/docker-library/python/pull/143#issuecomment-241032683
62
+ && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
63
+ # then we use "pip list" to ensure we don't have more than one pip version installed
64
+ # https://github.com/docker-library/python/pull/100
60
65
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
61
66
\
62
67
&& find /usr/local -depth \
Original file line number Diff line number Diff line change @@ -73,7 +73,12 @@ RUN set -ex \
73
73
&& python3 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
74
74
&& rm /tmp/get-pip.py \
75
75
; fi \
76
- && pip3 install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
76
+ # we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python
77
+ # ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
78
+ # https://github.com/docker-library/python/pull/143#issuecomment-241032683
79
+ && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
80
+ # then we use "pip list" to ensure we don't have more than one pip version installed
81
+ # https://github.com/docker-library/python/pull/100
77
82
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
78
83
\
79
84
&& find /usr/local -depth \
You can’t perform that action at this time.
0 commit comments