From b41f0f509e0aea86298d55d503c9df23e4897ee7 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Tue, 25 Aug 2026 20:39:00 +0200 Subject: [PATCH] Pin uv-managed Python 3.12 in CI for PyInstaller The runner's system CPython is built without a shared libpython3.x.so, which PyInstaller --onefile requires. setup-uv's python-version input makes uv provision its managed CPython, which ships the shared library. --- .gitea/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 025273a..0f711dc 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -12,6 +12,10 @@ jobs: - 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 dependencies run: uv sync --frozen @@ -35,6 +39,10 @@ jobs: - 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 dependencies run: uv sync --frozen --group build