From 2fc5fe2e6a7d29a65c627df61ecec92e5d5bcf07 Mon Sep 17 00:00:00 2001 From: Miguel Sousa Date: Mon, 17 Jan 2022 00:19:52 -0800 Subject: [PATCH] Build Python 3.10 wheels in a separate step 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 https://github.com/pypa/manylinux/issues/994 List of manylinux images: https://github.com/pypa/manylinux#docker-images --- .github/workflows/build_wheels.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index d8fdd992d..2fc5c212f 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -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)