Skip to content

Commit ccd9984

Browse files
mrecachinasCopilot
andcommitted
Fix CI: use venv for sdist install, update macOS runners
- sdist job: use uv venv instead of --system to avoid PEP 668 error on macos-14 with externally managed Homebrew Python - wheels_macos: use macos-14 for all arches (macos-13 is deprecated) cibuildwheel handles x86_64 cross-compilation via CIBW_ARCHS_MACOS Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a3016bc commit ccd9984

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ jobs:
6060
run: uv build --sdist --out-dir wheelhouse
6161

6262
- name: Install from sdist
63-
run: uv pip install --system wheelhouse/*.tar.gz
63+
run: |
64+
uv venv .venv
65+
uv pip install --python .venv/bin/python wheelhouse/*.tar.gz
6466
6567
- name: Check sdist
6668
run: |
@@ -77,7 +79,7 @@ jobs:
7779
if: startsWith(github.ref, 'refs/tags')
7880
needs: [build-and-test, sdist]
7981
name: Build macOS ${{ matrix.cibw_python }} ${{ matrix.cibw_arch }} wheels
80-
runs-on: ${{ matrix.cibw_arch == 'arm64' && 'macos-14' || 'macos-13' }}
82+
runs-on: macos-14
8183
strategy:
8284
fail-fast: true
8385
matrix:

0 commit comments

Comments
 (0)