Skip to content

Commit f326c9d

Browse files
clone one file
1 parent c958bd1 commit f326c9d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.ci/docker/manywheel/Dockerfile_ppc64le

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,15 @@ RUN /bin/rm -rf /opt/_internal /opt/python /usr/local/*/*
8080

8181
# EPEL for cmake
8282
FROM base as patchelf
83+
84+
# Instead of ADD ./common/install_cpython.sh ...
85+
RUN git clone --depth 1 https://github.com/pytorch/pytorch.git /tmp/pytorch && \
86+
cp /tmp/pytorch/.ci/docker/common/install_cpython.sh /build_scripts/install_cpython.sh && \
87+
rm -rf /tmp/pytorch
8388
# Install patchelf
84-
ADD ./common/install_patchelf.sh install_patchelf.sh
85-
RUN bash ./install_patchelf.sh && rm install_patchelf.sh
89+
# ADD ./common/install_patchelf.sh install_patchelf.sh
90+
#RUN bash ./install_patchelf.sh && rm install_patchelf.sh
91+
RUN bash /build_scripts/install_cpython.sh
8692
RUN cp $(which patchelf) /patchelf
8793

8894
FROM patchelf as python

0 commit comments

Comments
 (0)