From f2d7f0fc4f2d7764d88687d909964b3749b6ecf4 Mon Sep 17 00:00:00 2001 From: aitbc1 Date: Sat, 28 Mar 2026 12:49:52 +0100 Subject: [PATCH] Fix build step to use virtual environment for externally managed Python --- .gitea/workflows/package-tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/package-tests.yml b/.gitea/workflows/package-tests.yml index 07bdf2e4..fc5213e9 100644 --- a/.gitea/workflows/package-tests.yml +++ b/.gitea/workflows/package-tests.yml @@ -571,6 +571,8 @@ jobs: # For root-level packages (like aitbc-cli), use python build instead of poetry if [[ "${{ matrix.package.path }}" == "." ]]; then echo "Building root-level package with python -m build..." + python3 -m venv .build-venv + source .build-venv/bin/activate python3 -m pip install build -q python3 -m build elif [[ -f "pyproject.toml" ]]; then @@ -581,7 +583,9 @@ jobs: poetry build elif [[ -f "setup.py" ]]; then echo "No pyproject.toml found, using setup.py..." - python3 -m pip install build setuptools wheel -q + python3 -m venv .build-venv + source .build-venv/bin/activate + pip install build setuptools wheel -q python3 -m build else echo "❌ No pyproject.toml or setup.py found"