File tree Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ ENV PYTHON_VERSION 2.7.13
18
18
19
19
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
20
20
ENV PYTHON_PIP_VERSION 9.0.1
21
+ ENV PYTHON_SETUPTOOLS_VERSION 34.3.3
22
+ ENV PYTHON_WHEEL_VERSION 0.29.0
21
23
22
24
RUN set -ex \
23
25
&& buildDeps=' \
@@ -50,7 +52,10 @@ RUN set -ex \
50
52
# 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
53
# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
52
54
# https://github.com/docker-library/python/pull/143#issuecomment-241032683
53
- && pip install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
55
+ && pip install --no-cache-dir --upgrade --force-reinstall \
56
+ "pip==$PYTHON_PIP_VERSION" \
57
+ "setuptools==$PYTHON_SETUPTOOLS_VERSION" \
58
+ "wheel==$PYTHON_WHEEL_VERSION" \
54
59
# then we use "pip list" to ensure we don't have more than one pip version installed
55
60
# https://github.com/docker-library/python/pull/100
56
61
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ ENV PYTHON_VERSION 2.7.13
16
16
17
17
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
18
18
ENV PYTHON_PIP_VERSION 9.0.1
19
+ ENV PYTHON_SETUPTOOLS_VERSION 34.3.3
20
+ ENV PYTHON_WHEEL_VERSION 0.29.0
19
21
20
22
RUN set -ex \
21
23
&& apk add --no-cache --virtual .fetch-deps \
@@ -67,7 +69,10 @@ RUN set -ex \
67
69
# 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
70
# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
69
71
# https://github.com/docker-library/python/pull/143#issuecomment-241032683
70
- && pip install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
72
+ && pip install --no-cache-dir --upgrade --force-reinstall \
73
+ "pip==$PYTHON_PIP_VERSION" \
74
+ "setuptools==$PYTHON_SETUPTOOLS_VERSION" \
75
+ "wheel==$PYTHON_WHEEL_VERSION" \
71
76
# then we use "pip list" to ensure we don't have more than one pip version installed
72
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" ] \
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ ENV PYTHON_VERSION 2.7.13
20
20
21
21
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
22
22
ENV PYTHON_PIP_VERSION 9.0.1
23
+ ENV PYTHON_SETUPTOOLS_VERSION 34.3.3
24
+ ENV PYTHON_WHEEL_VERSION 0.29.0
23
25
24
26
RUN set -ex \
25
27
&& buildDeps=' \
@@ -65,7 +67,10 @@ RUN set -ex \
65
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
66
68
# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
67
69
# https://github.com/docker-library/python/pull/143#issuecomment-241032683
68
- && pip install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
70
+ && pip install --no-cache-dir --upgrade --force-reinstall \
71
+ "pip==$PYTHON_PIP_VERSION" \
72
+ "setuptools==$PYTHON_SETUPTOOLS_VERSION" \
73
+ "wheel==$PYTHON_WHEEL_VERSION" \
69
74
# then we use "pip list" to ensure we don't have more than one pip version installed
70
75
# https://github.com/docker-library/python/pull/100
71
76
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ ENV PYTHON_VERSION 2.7.13
18
18
19
19
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
20
20
ENV PYTHON_PIP_VERSION 9.0.1
21
+ ENV PYTHON_SETUPTOOLS_VERSION 34.3.3
22
+ ENV PYTHON_WHEEL_VERSION 0.29.0
21
23
22
24
RUN set -ex \
23
25
&& buildDeps=' \
@@ -50,7 +52,10 @@ RUN set -ex \
50
52
# 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
53
# ("Requirement already up-to-date: pip==8.1.2 in /usr/local/lib/python3.6/site-packages")
52
54
# https://github.com/docker-library/python/pull/143#issuecomment-241032683
53
- && pip install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
55
+ && pip install --no-cache-dir --upgrade --force-reinstall \
56
+ "pip==$PYTHON_PIP_VERSION" \
57
+ "setuptools==$PYTHON_SETUPTOOLS_VERSION" \
58
+ "wheel==$PYTHON_WHEEL_VERSION" \
54
59
# then we use "pip list" to ensure we don't have more than one pip version installed
55
60
# https://github.com/docker-library/python/pull/100
56
61
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
You can’t perform that action at this time.
0 commit comments