Skip to content

Commit 4953cda

Browse files
rafieDvirDukhan
authored andcommitted
Build: setuptools-related fix (#455)
(cherry picked from commit d1fcd0d)
1 parent d0f3d72 commit 4953cda

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ COPY --from=redis /usr/local/ /usr/local/
3131
COPY ./opt/ opt/
3232
COPY ./test/test_requirements.txt test/
3333

34-
RUN ./opt/readies/bin/getpy3
34+
RUN PIP=1 FORCE=1 ./opt/readies/bin/getpy3
3535
RUN ./opt/system-setup.py
3636

3737
ARG DEPS_ARGS=""

Dockerfile.gpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ COPY --from=redis /usr/local/ /usr/local/
3636
COPY ./opt/ opt/
3737
COPY ./test/test_requirements.txt test/
3838

39-
RUN ./opt/readies/bin/getpy3
39+
RUN PIP=1 FORCE=1 ./opt/readies/bin/getpy3
4040
RUN ./opt/system-setup.py
4141

4242
ARG DEPS_ARGS=""

Dockerfile.gpu-test

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ COPY --from=redis /usr/local/ /usr/local/
2929
COPY ./opt/ opt/
3030
COPY ./test/test_requirements.txt test/
3131

32-
RUN PIP=19.3.1 ./opt/readies/bin/getpy3
33-
RUN python3 -m pip install virtualenv
32+
RUN PIP=1 VENV=1 FORCE=1 ./opt/readies/bin/getpy3
3433

3534
RUN set -e ;\
3635
python3 -m virtualenv venv --system-site-packages ;\

opt/system-setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ def common_first(self):
1919
self.install_downloaders()
2020
self.setup_pip()
2121
self.pip_install("wheel virtualenv")
22-
self.pip_install("setuptools --upgrade")
22+
# if self.osnick == 'xenial':
23+
# self.pip_install("setuptools --upgrade")
24+
# self.pip_install("-IU --force-reinstall setuptools")
2325

2426
if self.os == 'linux':
2527
self.install("ca-certificates")
2628
self.install("git unzip wget patchelf")
2729
self.install("coreutils") # for realpath
2830

2931
def debian_compat(self):
30-
self.pip_install("-IU --force-reinstall setuptools")
3132
self.install("gawk")
3233
self.install("build-essential cmake")
3334
self.install("python3-regex")

0 commit comments

Comments
 (0)