Skip to content

Commit 779ba5e

Browse files
committed
Switch from manylinux2010 to manylinux2014
Previously, we built manylinux2010 wheels for Python 3.7 through 3.12, and manylinux2014 wheels for Python 3.11 through 3.13. Stop producing the manylinux2010 wheels. For each of the versions that previously had only manylinux2010 wheels, instead build manylinux2014 wheels. Signed-off-by: Matt Wozniski <[email protected]>
1 parent 8d5267b commit 779ba5e

File tree

4 files changed

+5
-38
lines changed

4 files changed

+5
-38
lines changed

.github/workflows/build_wheels.yml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -51,45 +51,17 @@ jobs:
5151

5252
build_linux_wheels:
5353
needs: [build_sdist, choose_linux_wheel_types]
54-
name: ${{ matrix.wheel_type }}${{ matrix.manylinux2010_hack }} wheels
54+
name: ${{ matrix.wheel_type }} wheels
5555
runs-on: ${{ matrix.os }}
5656
strategy:
5757
fail-fast: false
5858
matrix:
5959
wheel_type: ${{ fromJSON(needs.choose_linux_wheel_types.outputs.wheel_types) }}
60-
manylinux2010_hack: [""]
6160
include:
6261
- os: ubuntu-latest
6362
- wheel_type: manylinux_aarch64
6463
os: ubuntu-24.04-arm
65-
- wheel_type: manylinux_x86_64
66-
os: ubuntu-latest
67-
manylinux2010_hack: "_manylinux2010_hack"
6864
steps:
69-
- name: Build manylinux2010 image containing Python 3.11 and 3.12
70-
if: matrix.manylinux2010_hack
71-
run: |
72-
echo "CIBW_SKIP=*cp3{7,8,9,10,13}*" >> $GITHUB_ENV
73-
echo "CIBW_MANYLINUX_X86_64_IMAGE=manylinux2010-with-modern-cpython" >> $GITHUB_ENV
74-
docker build -t manylinux2010-with-modern-cpython - <<'EOF'
75-
# syntax=docker/dockerfile:1
76-
FROM quay.io/pypa/manylinux2010_x86_64:latest
77-
RUN curl https://pyenv.run | bash && \
78-
export PYENV_ROOT="$HOME/.pyenv" && \
79-
export PATH="$PYENV_ROOT/bin:$PATH" && \
80-
eval "$(pyenv init -)" && \
81-
yum install -y make patch zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel tk-devel libffi-devel xz-devel perl-IPC-Cmd && \
82-
curl -L https://www.openssl.org/source/openssl-3.0.12.tar.gz >openssl-3.0.12.tar.gz && \
83-
tar xzf openssl-3.0.12.tar.gz && \
84-
(cd openssl-3.0.12 && ./config no-shared --prefix=/usr/local/ssl --openssldir=/usr/local/ssl --libdir=lib && make && make install_sw) && \
85-
rm -rf openssl-3.0.12.tar.gz && \
86-
rm -rf openssl-3.0.12 && \
87-
PYTHON_CONFIGURE_OPTS=--with-openssl=/usr/local/ssl pyenv install 3.11 && \
88-
ln -s /root/.pyenv/versions/3.11* /opt/python/cp311-cp311 && \
89-
PYTHON_CONFIGURE_OPTS=--with-openssl=/usr/local/ssl pyenv install 3.12 && \
90-
ln -s /root/.pyenv/versions/3.12* /opt/python/cp312-cp312 && \
91-
true
92-
EOF
9365
- uses: actions/download-artifact@v4
9466
with:
9567
name: sdist
@@ -114,7 +86,7 @@ jobs:
11486
CIBW_TEST_COMMAND: python -um pytest --log-cli-level=DEBUG -s -vvv {package}/tests
11587
- uses: actions/upload-artifact@v4
11688
with:
117-
name: ${{ matrix.wheel_type }}${{ matrix.manylinux2010_hack }}-wheels
89+
name: ${{ matrix.wheel_type }}-wheels
11890
path: ./wheelhouse/*.whl
11991

12092
build_macosx_wheels:

docs/supported_environments.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ We require a C++17 runtime. As noted above, macOS 11 or higher is required for
4848
a C++17 runtime on Mac.
4949

5050
On Linux we support glibc and musl libc. Other libc's have not been tested, and
51-
issues are likely. For Python 3.10 and earlier we support platforms compatible
52-
with the ``manylinux2010`` specification, and for Python 3.11 onward we require
53-
``manylinux2014`` compatibility.
51+
issues are likely. We support platforms compatible with the ``manylinux2014``
52+
specification.
5453

5554
Known issues and limitations
5655
----------------------------

news/742.removal.1.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
We no longer provide manylinux2010 wheels. Previously they were provided for Python 3.7 through 3.12, now we provide manylinux2014 wheels for those Python versions instead. The manylinux project dropped support for manylinux2010 on August 1st, 2022.

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ manylinux-x86_64-image = "manylinux2014"
6767
manylinux-i686-image = "manylinux2014"
6868
musllinux-x86_64-image = "musllinux_1_1"
6969

70-
[[tool.cibuildwheel.overrides]]
71-
select = "cp3{7,8,9,10}-*"
72-
manylinux-x86_64-image = "manylinux2010"
73-
manylinux-i686-image = "manylinux2010"
74-
7570
[tool.cibuildwheel.linux]
7671
before-all = [
7772
# Build the latest curl from source.

0 commit comments

Comments
 (0)