Skip to content

Commit b1b9abe

Browse files
nightly build changes except 313
1 parent f63765f commit b1b9abe

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

.ci/docker/manywheel/Dockerfile_ppc64le

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,37 @@ ENV LD_LIBRARY_PATH=/opt/rh/gcc-toolset-${DEVTOOLSET_VERSION}/root/usr/lib64:/op
7575
# Configure git to avoid safe directory issues
7676
RUN git config --global --add safe.directory "*"
7777

78+
# installed python doesn't have development parts. Rebuild it from scratch
79+
RUN /bin/rm -rf /opt/_internal /opt/python /usr/local/*/*
80+
81+
# EPEL for cmake
82+
FROM base as patchelf
83+
# Install patchelf
84+
ADD ./common/install_patchelf.sh install_patchelf.sh
85+
RUN bash ./install_patchelf.sh && rm install_patchelf.sh
86+
RUN cp $(which patchelf) /patchelf
87+
88+
FROM patchelf as python
89+
# build python
90+
COPY manywheel/build_scripts /build_scripts
91+
ADD ./common/install_cpython.sh /build_scripts/install_cpython.sh
92+
ENV SSL_CERT_FILE=
93+
RUN bash build_scripts/build.sh && rm -r build_scripts
94+
95+
FROM base as final
96+
COPY --from=python /opt/python /opt/python
97+
COPY --from=python /opt/_internal /opt/_internal
98+
COPY --from=python /opt/python/cp39-cp39/bin/auditwheel /usr/local/bin/auditwheel
99+
COPY --from=patchelf /usr/local/bin/patchelf /usr/local/bin/patchelf
100+
101+
RUN alternatives --set python /usr/bin/python3.12
102+
RUN alternatives --set python3 /usr/bin/python3.12
103+
104+
RUN pip-3.12 install typing_extensions
105+
78106
# Install required Python packages
79-
RUN pip install --upgrade pip
80-
RUN pip install typing_extensions pyyaml setuptools
107+
#RUN pip install --upgrade pip
108+
#RUN pip install typing_extensions pyyaml setuptools
81109

82110
# Install test dependencies
83111
RUN dnf install -y \

.ci/manywheel/build_common.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ for pkg in /$WHEELHOUSE_DIR/torch_no_python*.whl /$WHEELHOUSE_DIR/torch*linux*.w
380380
done
381381

382382
# create Manylinux 2_28 tag this needs to happen before regenerate the RECORD
383-
if [[ $PLATFORM == "manylinux_2_28_x86_64" && $GPU_ARCH_TYPE != "cpu-s390x" && $GPU_ARCH_TYPE != "xpu" ]]; then
383+
if [[ $PLATFORM == "manylinux_2_28_x86_64" && $GPU_ARCH_TYPE != "cpu-s390x" && $GPU_ARCH_TYPE != "cpu-ppc64le" && $GPU_ARCH_TYPE != "xpu" ]]; then
384384
wheel_file=$(echo $(basename $pkg) | sed -e 's/-cp.*$/.dist-info\/WHEEL/g')
385385
sed -i -e s#linux_x86_64#"${PLATFORM}"# $wheel_file;
386386
fi
@@ -425,7 +425,7 @@ for pkg in /$WHEELHOUSE_DIR/torch_no_python*.whl /$WHEELHOUSE_DIR/torch*linux*.w
425425
fi
426426

427427
# Rename wheel for Manylinux 2_28
428-
if [[ $PLATFORM == "manylinux_2_28_x86_64" && $GPU_ARCH_TYPE != "cpu-s390x" && $GPU_ARCH_TYPE != "xpu" ]]; then
428+
if [[ $PLATFORM == "manylinux_2_28_x86_64" && $GPU_ARCH_TYPE != "cpu-s390x" && $GPU_ARCH_TYPE != "cpu-ppc64le" && $GPU_ARCH_TYPE != "xpu" ]]; then
429429
pkg_name=$(echo $(basename $pkg) | sed -e s#linux_x86_64#"${PLATFORM}"#)
430430
zip -rq $pkg_name $PREIX*
431431
rm -f $pkg

0 commit comments

Comments
 (0)