Fix: seed pip into uv-created venv so MCP connector dep install works
Nightly Build / build (push) Successful in 6m25s

uv venv does not bundle pip by default (unlike python3 -m venv), so when the
venv python was on PATH, ensure_installed_host's 'python3 -m pip install' failed
with 'No module named pip'. Apply --seed across the 4 copies of the venv-setup
block (install.sh, install-nightly.sh, run.sh, run-docker.sh).
This commit is contained in:
2026-07-20 19:00:04 +01:00
parent cff860499e
commit 54949e2ca9
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ REQUIREMENTS="${INSTALL_DIR}/requirements.txt"
if [ ! -f "$VENV_DIR/bin/python3" ]; then if [ ! -f "$VENV_DIR/bin/python3" ]; then
if command -v uv >/dev/null 2>&1; then if command -v uv >/dev/null 2>&1; then
uv venv "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \ uv venv --seed "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \
&& info "✔ Python venv ready (uv)" \ && info "✔ Python venv ready (uv)" \
|| warn "Python venv setup failed — Python MCP servers will be unavailable." || warn "Python venv setup failed — Python MCP servers will be unavailable."
elif command -v python3 >/dev/null 2>&1; then elif command -v python3 >/dev/null 2>&1; then
+1 -1
View File
@@ -263,7 +263,7 @@ REQUIREMENTS="${INSTALL_DIR}/requirements.txt"
if [ ! -f "$VENV_DIR/bin/python3" ]; then if [ ! -f "$VENV_DIR/bin/python3" ]; then
if command -v uv >/dev/null 2>&1; then if command -v uv >/dev/null 2>&1; then
uv venv "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \ uv venv --seed "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \
&& info "✔ Python venv ready (uv)" \ && info "✔ Python venv ready (uv)" \
|| warn "Python venv setup failed — Python MCP servers will be unavailable." || warn "Python venv setup failed — Python MCP servers will be unavailable."
elif command -v python3 >/dev/null 2>&1; then elif command -v python3 >/dev/null 2>&1; then
+1 -1
View File
@@ -14,7 +14,7 @@ REQUIREMENTS="requirements.txt"
if [ ! -f "$VENV_DIR/bin/python3" ] && [ -f "$REQUIREMENTS" ]; then if [ ! -f "$VENV_DIR/bin/python3" ] && [ -f "$REQUIREMENTS" ]; then
if command -v uv >/dev/null 2>&1; then if command -v uv >/dev/null 2>&1; then
echo "[run-docker.sh] Setting up Python venv with uv …" echo "[run-docker.sh] Setting up Python venv with uv …"
uv venv "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \ uv venv --seed "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \
&& echo "[run-docker.sh] Python venv ready." \ && echo "[run-docker.sh] Python venv ready." \
|| echo "[run-docker.sh] Warning: Python venv setup failed — Python MCP servers will be unavailable." || echo "[run-docker.sh] Warning: Python venv setup failed — Python MCP servers will be unavailable."
elif command -v python3 >/dev/null 2>&1; then elif command -v python3 >/dev/null 2>&1; then
+1 -1
View File
@@ -53,7 +53,7 @@ REQUIREMENTS="requirements.txt"
if [ ! -f "$VENV_DIR/bin/python3" ]; then if [ ! -f "$VENV_DIR/bin/python3" ]; then
if command -v uv >/dev/null 2>&1; then if command -v uv >/dev/null 2>&1; then
echo "[run.sh] Setting up Python venv with uv …" echo "[run.sh] Setting up Python venv with uv …"
uv venv "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \ uv venv --seed "$VENV_DIR" && uv pip install -r "$REQUIREMENTS" \
&& echo "[run.sh] Python venv ready." \ && echo "[run.sh] Python venv ready." \
|| echo "[run.sh] Warning: Python venv setup failed — Python MCP servers will be unavailable." || echo "[run.sh] Warning: Python venv setup failed — Python MCP servers will be unavailable."
elif command -v python3 >/dev/null 2>&1; then elif command -v python3 >/dev/null 2>&1; then