Skip to content

Commit ba1a779

Browse files
wmaynerclaude
andcommitted
Fix CI build on macOS with externally-managed Python
Use a virtual environment instead of --system flag to avoid PEP 668 errors on macOS runners with Homebrew-managed Python. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 821758c commit ba1a779

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,17 @@ jobs:
5656
name: dist
5757
path: dist/
5858

59-
- name: Install wheel
59+
- name: Create venv and install wheel
6060
shell: bash
61-
run: uv pip install --system dist/*.whl
61+
run: |
62+
uv venv
63+
uv pip install dist/*.whl
6264
6365
- name: Test import
64-
run: python -c "import pyphi; print('PyPhi imported successfully')"
66+
shell: bash
67+
run: |
68+
if [ -f ".venv/bin/python" ]; then
69+
.venv/bin/python -c "import pyphi; print('PyPhi imported successfully')"
70+
else
71+
.venv/Scripts/python -c "import pyphi; print('PyPhi imported successfully')"
72+
fi

0 commit comments

Comments
 (0)