File tree Expand file tree Collapse file tree 2 files changed +20
-11
lines changed Expand file tree Collapse file tree 2 files changed +20
-11
lines changed Original file line number Diff line number Diff line change @@ -85,11 +85,18 @@ ADD ./common/install_patchelf.sh install_patchelf.sh
8585RUN bash ./install_patchelf.sh && rm install_patchelf.sh
8686RUN 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
8995FROM base as final
9096COPY --from=python /opt/python /opt/python
9197COPY --from=python /opt/_internal /opt/_internal
9298COPY --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
94101RUN alternatives --set python /usr/bin/python3.12
95102RUN alternatives --set python3 /usr/bin/python3.12
Original file line number Diff line number Diff 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
4651make -j$( nproc)
4752make install
53+
54+ # Clean up
4855cd ..
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
6062autoconf --version
6163
6264# Compile the latest Python releases.
You can’t perform that action at this time.
0 commit comments