From b56c71ae22aa9796ca23828cad7f9221e519b8f7 Mon Sep 17 00:00:00 2001 From: aitbc1 Date: Sat, 28 Mar 2026 13:02:28 +0100 Subject: [PATCH] Fix venv creation to handle missing ensurepip by using --without-pip and manual pip install --- .gitea/workflows/package-tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/package-tests.yml b/.gitea/workflows/package-tests.yml index a8eb5f20..893255a6 100644 --- a/.gitea/workflows/package-tests.yml +++ b/.gitea/workflows/package-tests.yml @@ -596,7 +596,9 @@ jobs: poetry build elif [[ -f "setup.py" ]]; then echo "No pyproject.toml found, using setup.py..." - python3 -m venv .build-venv + # Create venv without pip first, then install pip manually + python3 -m venv .build-venv --without-pip + curl -sSL https://bootstrap.pypa.io/get-pip.py | .build-venv/bin/python3 source .build-venv/bin/activate pip install build setuptools wheel -q python3 -m build