File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -92,11 +92,20 @@ RUN bash /build_scripts/install_cpython.sh
9292RUN cp $(which patchelf) /patchelf
9393
9494FROM patchelf as python
95+
96+ # Clone only required scripts from the PyTorch repo
97+ RUN git clone --depth 1 https://github.com/pytorch/pytorch.git /tmp/pytorch && \
98+ mkdir -p /build_scripts && \
99+ cp -r /tmp/pytorch/.ci/docker/manywheel/build_scripts/* /build_scripts/ && \
100+ cp /tmp/pytorch/.ci/docker/common/install_cpython.sh /build_scripts/install_cpython.sh && \
101+ rm -rf /tmp/pytorch
95102# build python
96- COPY manywheel/build_scripts /build_scripts
97- ADD ./common/install_cpython.sh /build_scripts/install_cpython.sh
103+ # COPY manywheel/build_scripts /build_scripts
104+ # ADD ./common/install_cpython.sh /build_scripts/install_cpython.sh
98105ENV SSL_CERT_FILE=
99- RUN bash build_scripts/build.sh && rm -r build_scripts
106+ # Run the build script
107+ RUN bash /build_scripts/build.sh && rm -r /build_scripts
108+ #RUN bash build_scripts/build.sh && rm -r build_scripts
100109#RUN bash build_scripts/build.sh || (echo "Checksum verification failed!" && exit 1)
101110
102111FROM base as final
You can’t perform that action at this time.
0 commit comments