From 8a296fb49996e10fe965c305fb6fe5a21e4a9c85 Mon Sep 17 00:00:00 2001 From: Norman Hooper Date: Fri, 17 Apr 2026 17:13:12 -0400 Subject: [PATCH] Use uv venv instead of --system in release workflow uv pip install --system fails on GitHub runners because uv 0.9+ refuses to write to the system site-packages without root. Create a venv and activate it so pyinstaller and its deps install into a writable prefix. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/release_actions.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release_actions.yml b/.github/workflows/release_actions.yml index df087179..1e0e786e 100644 --- a/.github/workflows/release_actions.yml +++ b/.github/workflows/release_actions.yml @@ -19,12 +19,16 @@ jobs: - name: Install package and dependencies shell: bash run: | - uv pip install --system pyinstaller - uv pip install --system "commcare-export[executable]" + uv venv + source .venv/bin/activate + uv pip install pyinstaller + uv pip install "commcare-export[executable]" - name: Generate exe shell: bash - run: pyinstaller --dist ./dist/linux commcare-export.spec + run: | + source .venv/bin/activate + pyinstaller --dist ./dist/linux commcare-export.spec - name: Upload release assets uses: AButler/upload-release-assets@v3.0 @@ -47,12 +51,16 @@ jobs: - name: Install package and dependencies shell: pwsh run: | - uv pip install --system pyinstaller - uv pip install --system "commcare-export[executable]" + uv venv + .venv\Scripts\Activate.ps1 + uv pip install pyinstaller + uv pip install "commcare-export[executable]" - name: Generate exe shell: pwsh - run: pyinstaller --dist ./dist/windows commcare-export.spec + run: | + .venv\Scripts\Activate.ps1 + pyinstaller --dist ./dist/windows commcare-export.spec - name: Upload release assets uses: AButler/upload-release-assets@v3.0