Skip to content

Commit 86a3449

Browse files
nightly build changes except 313
1 parent 9136a39 commit 86a3449

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

.ci/docker/manywheel/Dockerfile_ppc64le

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,18 @@ ADD ./common/install_patchelf.sh install_patchelf.sh
8585
RUN bash ./install_patchelf.sh && rm install_patchelf.sh
8686
RUN cp $(which patchelf) /patchelf
8787

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
8894

8995
FROM base as final
9096
COPY --from=python /opt/python /opt/python
9197
COPY --from=python /opt/_internal /opt/_internal
9298
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
93100

94101
RUN alternatives --set python /usr/bin/python3.12
95102
RUN alternatives --set python3 /usr/bin/python3.12

.ci/docker/manywheel/build_scripts/build.sh

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,27 @@ yum -y install bzip2 make git patch unzip bison yasm diffutils \
3838
automake which file \
3939
${PYTHON_COMPILE_DEPS}
4040

41-
# Install newest autoconf manually
42-
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.71.tar.gz
43-
tar -xzf autoconf-2.71.tar.gz
44-
cd autoconf-2.71
45-
./configure
41+
# Download and extract Autoconf
42+
curl -sLO http://ftp.gnu.org/gnu/autoconf/$AUTOCONF_ROOT.tar.gz
43+
echo "$AUTOCONF_HASH $AUTOCONF_ROOT.tar.gz" | sha256sum -c -
44+
tar -xzf $AUTOCONF_ROOT.tar.gz
45+
cd $AUTOCONF_ROOT
46+
47+
# Configure with the correct host
48+
./configure --host=powerpc64le-pc-linux-gnu
49+
50+
# Build and install
4651
make -j$(nproc)
4752
make install
53+
54+
# Clean up
4855
cd ..
56+
rm -rf $AUTOCONF_ROOT $AUTOCONF_ROOT.tar.gz
4957

50-
# Verify installation
51-
autoconf --version
5258

5359
# Install newest autoconf (previous method)
5460
#build_autoconf $AUTOCONF_ROOT $AUTOCONF_HASH
5561

56-
57-
58-
# Install newest autoconf
59-
build_autoconf $AUTOCONF_ROOT $AUTOCONF_HASH
6062
autoconf --version
6163

6264
# Compile the latest Python releases.

0 commit comments

Comments
 (0)