Skip to content

Commit 50850bb

Browse files
authored
Merge pull request #647 from infosiftr/pin-pip-setuptools
Pin pip to 21.2.x and setuptools to 57.x
2 parents 57740ba + bb68424 commit 50850bb

File tree

41 files changed

+170
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+170
-2
lines changed

3.10-rc/alpine3.13/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ RUN cd /usr/local/bin \
115115

116116
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
117117
ENV PYTHON_PIP_VERSION 21.2.4
118+
# https://github.com/docker-library/python/issues/365
119+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
118120
# https://github.com/pypa/get-pip
119121
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
120122
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -128,6 +130,7 @@ RUN set -ex; \
128130
--disable-pip-version-check \
129131
--no-cache-dir \
130132
"pip==$PYTHON_PIP_VERSION" \
133+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
131134
; \
132135
pip --version; \
133136
\

3.10-rc/alpine3.14/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ RUN cd /usr/local/bin \
115115

116116
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
117117
ENV PYTHON_PIP_VERSION 21.2.4
118+
# https://github.com/docker-library/python/issues/365
119+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
118120
# https://github.com/pypa/get-pip
119121
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
120122
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -128,6 +130,7 @@ RUN set -ex; \
128130
--disable-pip-version-check \
129131
--no-cache-dir \
130132
"pip==$PYTHON_PIP_VERSION" \
133+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
131134
; \
132135
pip --version; \
133136
\

3.10-rc/bullseye/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ RUN cd /usr/local/bin \
7070

7171
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
7272
ENV PYTHON_PIP_VERSION 21.2.4
73+
# https://github.com/docker-library/python/issues/365
74+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
7375
# https://github.com/pypa/get-pip
7476
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
7577
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -83,6 +85,7 @@ RUN set -ex; \
8385
--disable-pip-version-check \
8486
--no-cache-dir \
8587
"pip==$PYTHON_PIP_VERSION" \
88+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
8689
; \
8790
pip --version; \
8891
\

3.10-rc/bullseye/slim/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ RUN cd /usr/local/bin \
110110

111111
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
112112
ENV PYTHON_PIP_VERSION 21.2.4
113+
# https://github.com/docker-library/python/issues/365
114+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
113115
# https://github.com/pypa/get-pip
114116
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
115117
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -132,6 +134,7 @@ RUN set -ex; \
132134
--disable-pip-version-check \
133135
--no-cache-dir \
134136
"pip==$PYTHON_PIP_VERSION" \
137+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
135138
; \
136139
pip --version; \
137140
\

3.10-rc/buster/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ RUN cd /usr/local/bin \
7070

7171
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
7272
ENV PYTHON_PIP_VERSION 21.2.4
73+
# https://github.com/docker-library/python/issues/365
74+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
7375
# https://github.com/pypa/get-pip
7476
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
7577
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -83,6 +85,7 @@ RUN set -ex; \
8385
--disable-pip-version-check \
8486
--no-cache-dir \
8587
"pip==$PYTHON_PIP_VERSION" \
88+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
8689
; \
8790
pip --version; \
8891
\

3.10-rc/buster/slim/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ RUN cd /usr/local/bin \
110110

111111
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
112112
ENV PYTHON_PIP_VERSION 21.2.4
113+
# https://github.com/docker-library/python/issues/365
114+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
113115
# https://github.com/pypa/get-pip
114116
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
115117
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -132,6 +134,7 @@ RUN set -ex; \
132134
--disable-pip-version-check \
133135
--no-cache-dir \
134136
"pip==$PYTHON_PIP_VERSION" \
137+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
135138
; \
136139
pip --version; \
137140
\

3.10-rc/windows/windowsservercore-1809/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env
5353

5454
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
5555
ENV PYTHON_PIP_VERSION 21.2.4
56+
# https://github.com/docker-library/python/issues/365
57+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
5658
# https://github.com/pypa/get-pip
5759
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
5860
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -71,6 +73,7 @@ RUN Write-Host ('Downloading get-pip.py ({0}) ...' -f $env:PYTHON_GET_PIP_URL);
7173
--disable-pip-version-check \
7274
--no-cache-dir \
7375
('pip=={0}' -f $env:PYTHON_PIP_VERSION) \
76+
('setuptools=={0}' -f $env:PYTHON_SETUPTOOLS_VERSION) \
7477
; \
7578
Remove-Item get-pip.py -Force; \
7679
\

3.10-rc/windows/windowsservercore-ltsc2016/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env
5353

5454
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
5555
ENV PYTHON_PIP_VERSION 21.2.4
56+
# https://github.com/docker-library/python/issues/365
57+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
5658
# https://github.com/pypa/get-pip
5759
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
5860
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -71,6 +73,7 @@ RUN Write-Host ('Downloading get-pip.py ({0}) ...' -f $env:PYTHON_GET_PIP_URL);
7173
--disable-pip-version-check \
7274
--no-cache-dir \
7375
('pip=={0}' -f $env:PYTHON_PIP_VERSION) \
76+
('setuptools=={0}' -f $env:PYTHON_SETUPTOOLS_VERSION) \
7477
; \
7578
Remove-Item get-pip.py -Force; \
7679
\

3.10-rc/windows/windowsservercore-ltsc2022/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env
5353

5454
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
5555
ENV PYTHON_PIP_VERSION 21.2.4
56+
# https://github.com/docker-library/python/issues/365
57+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
5658
# https://github.com/pypa/get-pip
5759
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
5860
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -71,6 +73,7 @@ RUN Write-Host ('Downloading get-pip.py ({0}) ...' -f $env:PYTHON_GET_PIP_URL);
7173
--disable-pip-version-check \
7274
--no-cache-dir \
7375
('pip=={0}' -f $env:PYTHON_PIP_VERSION) \
76+
('setuptools=={0}' -f $env:PYTHON_SETUPTOOLS_VERSION) \
7477
; \
7578
Remove-Item get-pip.py -Force; \
7679
\

3.6/alpine3.13/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ RUN cd /usr/local/bin \
149149

150150
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
151151
ENV PYTHON_PIP_VERSION 21.2.4
152+
# https://github.com/docker-library/python/issues/365
153+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
152154
# https://github.com/pypa/get-pip
153155
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
154156
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -162,6 +164,7 @@ RUN set -ex; \
162164
--disable-pip-version-check \
163165
--no-cache-dir \
164166
"pip==$PYTHON_PIP_VERSION" \
167+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
165168
; \
166169
pip --version; \
167170
\

3.6/alpine3.14/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ RUN cd /usr/local/bin \
149149

150150
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
151151
ENV PYTHON_PIP_VERSION 21.2.4
152+
# https://github.com/docker-library/python/issues/365
153+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
152154
# https://github.com/pypa/get-pip
153155
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
154156
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -162,6 +164,7 @@ RUN set -ex; \
162164
--disable-pip-version-check \
163165
--no-cache-dir \
164166
"pip==$PYTHON_PIP_VERSION" \
167+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
165168
; \
166169
pip --version; \
167170
\

3.6/bullseye/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ RUN cd /usr/local/bin \
106106

107107
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
108108
ENV PYTHON_PIP_VERSION 21.2.4
109+
# https://github.com/docker-library/python/issues/365
110+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
109111
# https://github.com/pypa/get-pip
110112
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
111113
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -119,6 +121,7 @@ RUN set -ex; \
119121
--disable-pip-version-check \
120122
--no-cache-dir \
121123
"pip==$PYTHON_PIP_VERSION" \
124+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
122125
; \
123126
pip --version; \
124127
\

3.6/bullseye/slim/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ RUN cd /usr/local/bin \
145145

146146
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
147147
ENV PYTHON_PIP_VERSION 21.2.4
148+
# https://github.com/docker-library/python/issues/365
149+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
148150
# https://github.com/pypa/get-pip
149151
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
150152
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -167,6 +169,7 @@ RUN set -ex; \
167169
--disable-pip-version-check \
168170
--no-cache-dir \
169171
"pip==$PYTHON_PIP_VERSION" \
172+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
170173
; \
171174
pip --version; \
172175
\

3.6/buster/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ RUN cd /usr/local/bin \
106106

107107
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
108108
ENV PYTHON_PIP_VERSION 21.2.4
109+
# https://github.com/docker-library/python/issues/365
110+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
109111
# https://github.com/pypa/get-pip
110112
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
111113
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -119,6 +121,7 @@ RUN set -ex; \
119121
--disable-pip-version-check \
120122
--no-cache-dir \
121123
"pip==$PYTHON_PIP_VERSION" \
124+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
122125
; \
123126
pip --version; \
124127
\

3.6/buster/slim/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ RUN cd /usr/local/bin \
145145

146146
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
147147
ENV PYTHON_PIP_VERSION 21.2.4
148+
# https://github.com/docker-library/python/issues/365
149+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
148150
# https://github.com/pypa/get-pip
149151
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
150152
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -167,6 +169,7 @@ RUN set -ex; \
167169
--disable-pip-version-check \
168170
--no-cache-dir \
169171
"pip==$PYTHON_PIP_VERSION" \
172+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
170173
; \
171174
pip --version; \
172175
\

3.7/alpine3.13/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ RUN cd /usr/local/bin \
150150

151151
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
152152
ENV PYTHON_PIP_VERSION 21.2.4
153+
# https://github.com/docker-library/python/issues/365
154+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
153155
# https://github.com/pypa/get-pip
154156
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
155157
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -163,6 +165,7 @@ RUN set -ex; \
163165
--disable-pip-version-check \
164166
--no-cache-dir \
165167
"pip==$PYTHON_PIP_VERSION" \
168+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
166169
; \
167170
pip --version; \
168171
\

3.7/alpine3.14/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ RUN cd /usr/local/bin \
150150

151151
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
152152
ENV PYTHON_PIP_VERSION 21.2.4
153+
# https://github.com/docker-library/python/issues/365
154+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
153155
# https://github.com/pypa/get-pip
154156
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
155157
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -163,6 +165,7 @@ RUN set -ex; \
163165
--disable-pip-version-check \
164166
--no-cache-dir \
165167
"pip==$PYTHON_PIP_VERSION" \
168+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
166169
; \
167170
pip --version; \
168171
\

3.7/bullseye/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ RUN cd /usr/local/bin \
107107

108108
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
109109
ENV PYTHON_PIP_VERSION 21.2.4
110+
# https://github.com/docker-library/python/issues/365
111+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
110112
# https://github.com/pypa/get-pip
111113
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
112114
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -120,6 +122,7 @@ RUN set -ex; \
120122
--disable-pip-version-check \
121123
--no-cache-dir \
122124
"pip==$PYTHON_PIP_VERSION" \
125+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
123126
; \
124127
pip --version; \
125128
\

3.7/bullseye/slim/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ RUN cd /usr/local/bin \
146146

147147
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
148148
ENV PYTHON_PIP_VERSION 21.2.4
149+
# https://github.com/docker-library/python/issues/365
150+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
149151
# https://github.com/pypa/get-pip
150152
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
151153
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -168,6 +170,7 @@ RUN set -ex; \
168170
--disable-pip-version-check \
169171
--no-cache-dir \
170172
"pip==$PYTHON_PIP_VERSION" \
173+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
171174
; \
172175
pip --version; \
173176
\

3.7/buster/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ RUN cd /usr/local/bin \
107107

108108
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
109109
ENV PYTHON_PIP_VERSION 21.2.4
110+
# https://github.com/docker-library/python/issues/365
111+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
110112
# https://github.com/pypa/get-pip
111113
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
112114
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -120,6 +122,7 @@ RUN set -ex; \
120122
--disable-pip-version-check \
121123
--no-cache-dir \
122124
"pip==$PYTHON_PIP_VERSION" \
125+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
123126
; \
124127
pip --version; \
125128
\

3.7/buster/slim/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ RUN cd /usr/local/bin \
146146

147147
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
148148
ENV PYTHON_PIP_VERSION 21.2.4
149+
# https://github.com/docker-library/python/issues/365
150+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
149151
# https://github.com/pypa/get-pip
150152
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
151153
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -168,6 +170,7 @@ RUN set -ex; \
168170
--disable-pip-version-check \
169171
--no-cache-dir \
170172
"pip==$PYTHON_PIP_VERSION" \
173+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
171174
; \
172175
pip --version; \
173176
\

3.8/alpine3.13/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ RUN cd /usr/local/bin \
114114

115115
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
116116
ENV PYTHON_PIP_VERSION 21.2.4
117+
# https://github.com/docker-library/python/issues/365
118+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
117119
# https://github.com/pypa/get-pip
118120
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
119121
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -127,6 +129,7 @@ RUN set -ex; \
127129
--disable-pip-version-check \
128130
--no-cache-dir \
129131
"pip==$PYTHON_PIP_VERSION" \
132+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
130133
; \
131134
pip --version; \
132135
\

3.8/alpine3.14/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ RUN cd /usr/local/bin \
114114

115115
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
116116
ENV PYTHON_PIP_VERSION 21.2.4
117+
# https://github.com/docker-library/python/issues/365
118+
ENV PYTHON_SETUPTOOLS_VERSION 57.5.0
117119
# https://github.com/pypa/get-pip
118120
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
119121
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
@@ -127,6 +129,7 @@ RUN set -ex; \
127129
--disable-pip-version-check \
128130
--no-cache-dir \
129131
"pip==$PYTHON_PIP_VERSION" \
132+
"setuptools==$PYTHON_SETUPTOOLS_VERSION" \
130133
; \
131134
pip --version; \
132135
\

0 commit comments

Comments
 (0)