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"