@@ -6,11 +6,11 @@ ENV LC_ALL=C.UTF-8
66ENV LANG=C.UTF-8
77ENV LANGUAGE=C.UTF-8
88
9- ARG DEVTOOLSET_VERSION=13
9+ ARG DEVTOOLSET_VERSION=14
1010
1111# Create symbolic links for Python 3.12
12- RUN ln -sf /opt/python/cp312-cp312/bin/python3.12 /usr/bin/python3 && \
13- ln -sf /opt/python/cp312-cp312/bin/python3.12 /usr/bin/python
12+ # RUN ln -sf /opt/python/cp312-cp312/bin/python3.12 /usr/bin/python3 && \
13+ # ln -sf /opt/python/cp312-cp312/bin/python3.12 /usr/bin/python
1414
1515# Install required system dependencies
1616RUN yum -y install epel-release && \
@@ -22,7 +22,6 @@ RUN yum -y install epel-release && \
2222 bison \
2323 bzip2 \
2424 curl \
25- ca-certificates \
2625 diffutils \
2726 file \
2827 git \
@@ -68,7 +67,7 @@ RUN yum -y install epel-release && \
6867
6968
7069# Ensure the correct Python version is used
71- ENV PATH=/opt/python/cp312-cp312/bin:$PATH
70+ # ENV PATH=/opt/python/cp312-cp312/bin:$PATH
7271# Add gcc-toolset to the path
7372ENV PATH=/opt/rh/gcc-toolset-${DEVTOOLSET_VERSION}/root/usr/bin:$PATH
7473ENV LD_LIBRARY_PATH=/opt/rh/gcc-toolset-${DEVTOOLSET_VERSION}/root/usr/lib64:/opt/rh/gcc-toolset-${DEVTOOLSET_VERSION}/root/usr/lib:$LD_LIBRARY_PATH
@@ -84,8 +83,7 @@ FROM base as patchelf
8483
8584# Instead of ADD ./common/install_cpython.sh ...
8685RUN git clone --depth 1 --branch temp-gha-runner-v2 https://github.com/sandeepgupta12/pytorch.git /tmp/pytorch && \
87- cp /tmp/pytorch/.ci/docker/common/install_patchelf.sh /build_scripts/install_patchelf.sh && \
88- rm -rf /tmp/pytorch
86+ cp /tmp/pytorch/.ci/docker/common/install_patchelf.sh /build_scripts/install_patchelf.sh
8987# Install patchelf
9088# ADD ./common/install_patchelf.sh install_patchelf.sh
9189#RUN bash ./install_patchelf.sh && rm install_patchelf.sh
@@ -99,8 +97,7 @@ RUN cp $(which patchelf) /patchelf
9997FROM patchelf as python
10098
10199# Clone only required scripts from the PyTorch repo
102- RUN git clone --depth 1 --branch temp-gha-runner-v2 https://github.com/sandeepgupta12/pytorch.git /tmp/pytorch && \
103- mkdir -p /build_scripts && \
100+ RUN mkdir -p /build_scripts && \
104101 cp -r /tmp/pytorch/.ci/docker/manywheel/build_scripts/* /build_scripts/ && \
105102 cp /tmp/pytorch/.ci/docker/common/install_cpython.sh /build_scripts/install_cpython.sh && \
106103 rm -rf /tmp/pytorch
0 commit comments