Skip to content

Commit 20a7fe6

Browse files
author
Bhanu Teja Goshikonda
committed
fix: pin setuptools to 81.0.0 and remove redundant installs
1 parent 2d9b14e commit 20a7fe6

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

pytorch/training/docker/2.10/py3/Dockerfile.cpu

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ RUN pip install --no-cache-dir \
186186
"idna>=3.7" \
187187
"tqdm>=4.66.3" \
188188
"requests>=2.32.0" \
189-
"setuptools==80.10.1" \
189+
"setuptools==81.0.0" \
190190
"urllib3>=2.5.0" \
191191
"awscli" \
192192
opencv-python==4.11.0.86 \
@@ -248,9 +248,6 @@ FROM common AS ec2
248248

249249
WORKDIR /
250250

251-
# Ensure setuptools is available for OSS compliance (pkg_resources needed by piplicenses)
252-
RUN pip install --no-cache-dir setuptools
253-
254251
COPY setup_oss_compliance.sh setup_oss_compliance.sh
255252
RUN bash setup_oss_compliance.sh ${PYTHON} && rm setup_oss_compliance.sh
256253

@@ -311,9 +308,6 @@ COPY start_with_right_hostname.sh /usr/local/bin/start_with_right_hostname.sh
311308

312309
RUN chmod +x /usr/local/bin/start_with_right_hostname.sh
313310

314-
# Ensure setuptools is available for OSS compliance (pkg_resources needed by piplicenses)
315-
RUN pip install --no-cache-dir setuptools
316-
317311
COPY setup_oss_compliance.sh setup_oss_compliance.sh
318312
RUN bash setup_oss_compliance.sh ${PYTHON} && rm setup_oss_compliance.sh
319313

pytorch/training/docker/2.10/py3/cu130/Dockerfile.gpu

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ RUN pip install --no-cache-dir \
105105
"idna>=3.7" \
106106
"tqdm>=4.66.3" \
107107
"requests>=2.32.0" \
108-
"setuptools==80.10.1" \
108+
"setuptools==81.0.0" \
109109
"urllib3>=2.5.0" \
110110
ninja \
111111
opencv-python==4.11.0.86 \
@@ -208,9 +208,6 @@ WORKDIR /
208208
COPY dockerd_entrypoint.sh /usr/local/bin/dockerd_entrypoint.sh
209209
RUN chmod +x /usr/local/bin/dockerd_entrypoint.sh
210210

211-
# Ensure setuptools is available for OSS compliance (pkg_resources needed by piplicenses)
212-
RUN pip install --no-cache-dir setuptools
213-
214211
COPY setup_oss_compliance.sh setup_oss_compliance.sh
215212
RUN bash setup_oss_compliance.sh ${PYTHON} && rm setup_oss_compliance.sh
216213

@@ -272,9 +269,6 @@ RUN pip install --no-cache-dir -U \
272269
seaborn \
273270
cloudpickle
274271

275-
# Ensure setuptools is available for OSS compliance (pkg_resources needed by piplicenses)
276-
RUN pip install --no-cache-dir setuptools
277-
278272
COPY setup_oss_compliance.sh setup_oss_compliance.sh
279273
RUN bash setup_oss_compliance.sh ${PYTHON} && rm setup_oss_compliance.sh
280274

0 commit comments

Comments
 (0)