Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use preinstalled Python 3 for cibuildwheel action #1145

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 3 additions & 6 deletions README.md
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
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
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