Skip to content

Commit

Permalink
Set Windows wheel Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Sep 4, 2024
1 parent 8a3a034 commit d71fb9f
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/wheel_tests_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest]
cibw_python: [ "cp38-*", "cp39-*", "cp310-*", "cp311-*"]
cibw_python: ["cp310-*", "cp311-*", "cp312-*"]
cibw_arch: [ "x86_64", "arm64"] #, "universal2"]

steps:
Expand All @@ -76,16 +76,6 @@ jobs:
with:
python-version: '3.10'

# See:
# https://cibuildwheel.readthedocs.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64
# https://github.com/pypa/cibuildwheel/issues/1414
- name: Install experimental MacOSX Py38
if: startsWith(matrix.cibw_python, 'cp38') && (matrix.cibw_arch == 'arm64')
run: |
curl -o /tmp/Python38.pkg https://www.python.org/ftp/python/3.8.10/python-3.8.10-macos11.pkg
sudo installer -pkg /tmp/Python38.pkg -target /
sh "/Applications/Python 3.8/Install Certificates.command"
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel
Expand Down Expand Up @@ -116,12 +106,13 @@ jobs:
path: ./dist/*.whl

build_windows_wheels:
name: Build ${{ matrix.cibw_arch }} wheels on ${{ matrix.os }}
name: Build python ${{ matrix.cibw_python }} ${{ matrix.cibw_arch }} wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
cibw_python: ["cp310-*", "cp311-*", "cp312-*"]
cibw_arch: ["AMD64"]

steps:
Expand All @@ -142,8 +133,7 @@ jobs:
run: |
python -m cibuildwheel --output-dir dist
env:
# Skip pypy
CIBW_BUILD: "cp3?-*"
CIBW_BUILD: ${{ matrix.cibw_python }}
CIBW_ARCHS_WINDOWS: ${{ matrix.cibw_arch }}
# -Wl,-S equivalent to gcc's -Wl,--strip-debug
LDFLAGS: "-Wl,-S"
Expand Down

0 comments on commit d71fb9f

Please sign in to comment.