Skip to content

Commit

Permalink
Install build in uv venv
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan committed Sep 2, 2024
1 parent 897f9c4 commit c299df5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,19 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: hynek/setup-cached-uv@v2

# NOTE: need to install build in a venv because of immutable OS?
# Caused by: failed to create directory `/usr/local/lib/python3.10/dist-packages/pyproject_hooks-1.1.0.dist-info`
- name: Install build dependencies
run: |
uv pip install --system --upgrade build
uv venv
uv pip install --upgrade build
- name: Build source distribution
run: python -m build
run: .venv/bin/python -m build

- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit c299df5

Please sign in to comment.