Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 33 additions & 32 deletions .github/workflows/python-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,38 +109,39 @@ jobs:
name: wheels-musllinux-${{ matrix.platform.target }}
path: dist

# We skip windows for now because the symlinks (for `pyi` typing) give "access denied" on windows.

# windows:
# runs-on: ${{ matrix.platform.runner }}
# strategy:
# matrix:
# platform:
# - runner: windows-latest
# target: x64
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: "recursive"
# # There seem to be linking errors on Windows with the uv-provided Python
# # executables, so we use the Python versions provided by github actions
# # for now.
# # Seems to be this question: https://stackoverflow.com/questions/78557803/python-with-rust-cannot-open-input-file-python3-lib
# - uses: actions/setup-python@v5
# with:
# python-version: 3.13
# architecture: ${{ matrix.platform.target }}
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.platform.target }}
# args: --release --out dist -i 3.9 -i 3.10 -i 3.11 -i 3.12 -i 3.13 --manifest-path python/Cargo.toml
# sccache: "true"
# - name: Upload wheels
# uses: actions/upload-artifact@v4
# with:
# name: wheels-windows-${{ matrix.platform.target }}
# path: dist
windows:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: windows-latest
target: x64
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
# There seem to be linking errors on Windows with the uv-provided Python
# executables, so we use the Python versions provided by github actions
# for now.
# Seems to be this question: https://stackoverflow.com/questions/78557803/python-with-rust-cannot-open-input-file-python3-lib
- uses: actions/setup-python@v5
with:
python-version: 3.13
architecture: ${{ matrix.platform.target }}
- name: Remove symlink (not supported in Windows wheels)
run: Remove-Item -Path python/python/async_tiff/store -Force
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

windows syntax is so weird 😄

shell: pwsh
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist -i 3.9 -i 3.10 -i 3.11 -i 3.12 -i 3.13 --manifest-path python/Cargo.toml
sccache: "true"
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-windows-${{ matrix.platform.target }}
path: dist

macos:
runs-on: ${{ matrix.platform.runner }}
Expand Down
Loading