Skip to content

Commit

Permalink
Use preinstalled Python 3 for cibuildwheel action
Browse files Browse the repository at this point in the history
There is at least 3.7 in every runner
https://github.com/actions/virtual-environments
  • Loading branch information
abitrolly committed Jun 18, 2022
1 parent cc56a14 commit 2577a51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,16 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macOS-10.15]
os: [ubuntu-20.04, windows-2019, macos-11]

steps:
- uses: actions/checkout@v2

# Used to host cibuildwheel
- uses: actions/setup-python@v2

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.7.0
run: python3 -m pip install cibuildwheel==2.7.0

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
run: python3 -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
Expand Down
9 changes: 3 additions & 6 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
```

!!! tab "Generic"
This is the most generic form using setup-python and pip; it looks the most
This is the most generic form using python3 and pip; it looks the most
like the other CI examples. If you want to avoid having setup that takes
advantage of GitHub Actions features or pipx being preinstalled, this might
appeal to you.
Expand All @@ -214,14 +214,11 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
steps:
- uses: actions/checkout@v2

# Used to host cibuildwheel
- uses: actions/setup-python@v2

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.7.0
run: python3 -m pip install cibuildwheel==2.7.0

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
run: python3 -m cibuildwheel --output-dir wheelhouse

- uses: actions/upload-artifact@v2
with:
Expand Down
7 changes: 1 addition & 6 deletions examples/github-with-qemu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-10.15]
os: [ubuntu-20.04, windows-2019, macos-11]

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.7'

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v1
Expand Down

0 comments on commit 2577a51

Please sign in to comment.