From 3eabc924a214522a6f82d381167a526ace986451 Mon Sep 17 00:00:00 2001 From: Paul O'Reilly Date: Wed, 9 Sep 2026 21:56:48 +1200 Subject: [PATCH] refactor(python-dev): swap pip -> uv pip for project install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit uv is now pre-baked into the base image (agent-runtimes/images/base/Dockerfile) and is faster than pip with better retry on transient network failures. Closes the last runtime hang vector for project-deps install — apt install was removed 2026-09-06 in 0c57972f-pre-bake work but the pip install -e line in init.sh remained. uv pip install is the equivalent operation with the new pre-baked tooling. Refs F-WE-PDIV/RCA-2026-09-04-zombies. --- harnesses/capabilities/python-dev/v1/init.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/harnesses/capabilities/python-dev/v1/init.sh b/harnesses/capabilities/python-dev/v1/init.sh index 76c1a5e..19686e9 100755 --- a/harnesses/capabilities/python-dev/v1/init.sh +++ b/harnesses/capabilities/python-dev/v1/init.sh @@ -18,10 +18,14 @@ if [[ -f "/workspace/pyproject.toml" ]]; then # Activate virtual environment source .venv/bin/activate - # Install project in development mode with all dependencies - pip install -e ".[dev,test]" 2>/dev/null || pip install -e . 2>/dev/null || { + # Install project in development mode with all dependencies. + # Switched from `pip` to `uv pip` 2026-09-09 — uv is now pre-baked into + # the base image (agent-runtimes/images/base/Dockerfile) and is faster, + # has better retry on transient network failures, and the only remaining + # runtime-install hang vector for project deps. + uv pip install -e ".[dev,test]" 2>/dev/null || uv pip install -e . 2>/dev/null || { echo "Could not install with extras, trying basic install..." - pip install -e . + uv pip install -e . } echo "Project installed in development mode"