Skip to content

Commit

Permalink
update base manylinux2014 image
Browse files Browse the repository at this point in the history
The new container image provides two Python 3.13 interpreters. Since
Python 3.13 is untested, remove their symlinks.

Also remove the PyPy interpreter symlinks. Modify the build script
so that it builds wheels for all Python interpreters provided in the
builder container (only CPython remains now), and that the iteration
is done in version order instead of lexical order.
  • Loading branch information
arcctgx committed Aug 4, 2024
1 parent 5b68ac6 commit f125a0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# hadolint global ignore=DL3003

FROM quay.io/pypa/manylinux2014_x86_64:2024-04-23-ef7507e
FROM quay.io/pypa/manylinux2014_x86_64:2024-08-03-32dfa47

ADD https://downloads.xiph.org/releases/ogg/libogg-1.3.5.tar.xz \
https://downloads.xiph.org/releases/vorbis/libvorbis-1.3.7.tar.xz \
Expand Down Expand Up @@ -41,8 +41,8 @@ RUN tar xf libsndfile-1.2.2.tar.xz && cd libsndfile-1.2.2 && \

WORKDIR /

# Remove unsupported Python version:
RUN rm -v /opt/python/cp36-cp36m
# Remove unsupported Python versions:
RUN rm -v /opt/python/cp36-cp36m /opt/python/cp313-cp313* /opt/python/pp*

COPY ./utils/pip.conf /etc/

Expand Down
9 changes: 6 additions & 3 deletions utils/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@ fi
# start with clean state:
rm -rf "${package_dir}/build" "${wheel_dir}"

# build CPython wheels:
for pybin in /opt/python/cp*/bin
# build wheels for all Python interpreters installed in the container:
find /opt/python/ -type l | sort -V |
while read -r pyint
do
pybin="${pyint}/bin"
"${pybin}/pip" wheel "${package_dir}" --wheel-dir "${wheel_dir}"
done

# vendor required shared libraries in wheels:
for wheel in "${wheel_dir}"/*.whl
find "${wheel_dir}" -type f -name "*.whl" | sort -V |
while read -r wheel
do
if ! auditwheel show "${wheel}"; then
echo "Skipping non-platform wheel ${wheel}"
Expand Down

0 comments on commit f125a0d

Please sign in to comment.