Skip to content

Commit

Permalink
Build manylinux2014 wheels for Python 3.11+
Browse files Browse the repository at this point in the history
For now, retain manylinux2010 wheels for Python 3.10 and earlier.

Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
  • Loading branch information
godlygeek committed Jul 27, 2022
1 parent 1fc0736 commit 5d2a037
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ concurrency:

jobs:
build_wheels:
name: Wheel for ${{ matrix.cibw_python }}-${{ matrix.cibw_arch }}-${{matrix.cibw_manylinux}}
name: Wheel for ${{ matrix.cibw_python }}-${{ matrix.cibw_arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
cibw_python: [ "cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"]
cibw_manylinux: [ manylinux2010 ]
cibw_arch: [ "x86_64", "i686" ]

steps:
Expand All @@ -35,8 +34,6 @@ jobs:
env:
CIBW_BUILD: ${{ matrix.cibw_python }}
CIBW_ARCHS_LINUX: ${{ matrix.cibw_arch }}
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.cibw_manylinux }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.cibw_manylinux }}
CIBW_PRERELEASE_PYTHONS: True
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND: pytest {package}/tests
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ exclude="tests/integration/(native_extension|multithreaded_extension)/"
[tool.cibuildwheel]
build = ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"]
skip = "*musllinux*"
manylinux-x86_64-image = "manylinux2014"
manylinux-i686-image = "manylinux2014"

[[tool.cibuildwheel.overrides]]
select = "cp3{7,8,9,10}-*"
manylinux-x86_64-image = "manylinux2010"
manylinux-i686-image = "manylinux2010"

[tool.cibuildwheel.linux]
before-all = "yum install -y libunwind-devel lz4-devel"

0 comments on commit 5d2a037

Please sign in to comment.