Skip to content

Commit

Permalink
Build Python 3.10 wheels in a separate step
Browse files Browse the repository at this point in the history
This is to allow for building the Linux wheels with the more recent 'manylinux2010' image instead of the 'manylinux1' image.
'manylinux1' does not support CPython 3.10 pypa/manylinux#994

List of manylinux images: https://github.com/pypa/manylinux#docker-images
  • Loading branch information
miguelsousa committed Jan 17, 2022
1 parent 5e35339 commit 2fc5fe2
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,30 @@ jobs:
with:
python-version: '3.8'

- name: Build wheels
- name: Build wheels (Python 3.7 through 3.9)
uses: pypa/cibuildwheel@v2.3.1
with:
output-dir: dist
env:
CIBW_BUILD: "cp3*"
CIBW_BUILD: "cp37* cp38* cp39*"
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_WINDOWS: AMD64
CIBW_ARCHS_LINUX: x86_64
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
CIBW_SKIP: "cp36* *musllinux*"
CIBW_SKIP: "*musllinux*"
CIBW_ENVIRONMENT: "CFLAGS='-g0'"

- name: Build wheels (Python 3.10 only)
uses: pypa/cibuildwheel@v2.3.1
with:
output-dir: dist
env:
CIBW_BUILD: "cp310*"
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_WINDOWS: AMD64
CIBW_ARCHS_LINUX: x86_64
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2010
CIBW_SKIP: "*musllinux*"
CIBW_ENVIRONMENT: "CFLAGS='-g0'"

- name: Build sdist (Ubuntu only)
Expand Down

0 comments on commit 2fc5fe2

Please sign in to comment.