Force uv-managed Python in release build
CI / check (push) Successful in 5s
CI / release (push) Successful in 28s

The runner's system CPython 3.12.3 satisfies the '3.12' request, so uv
kept using it and PyInstaller failed: system python is built without
libpython3.x.so. Set UV_PYTHON_PREFERENCE=only-managed and install the
managed interpreter explicitly.
This commit is contained in:
2026-08-25 20:45:27 +02:00
parent b41f0f509e
commit cbca729693
+9 -4
View File
@@ -35,14 +35,19 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
env:
# Force uv-managed CPython: the runner's system python satisfies the
# "3.12" request but is built without libpython3.x.so, which
# PyInstaller --onefile requires.
UV_PYTHON: "3.12"
UV_PYTHON_PREFERENCE: only-managed
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
# Pin uv's managed CPython: the runner's system python lacks
# libpython3.x.so, which PyInstaller needs for --onefile builds.
python-version: "3.12"
- name: Install managed Python
run: uv python install 3.12
- name: Install dependencies
run: uv sync --frozen --group build