From aa5b9655319492bd4722a6a78ca015314775e28e Mon Sep 17 00:00:00 2001 From: brutsalvadi Date: Thu, 23 Apr 2026 09:48:14 +0200 Subject: [PATCH] Auto-install Python venv for edit sidecar; update site submodule --- scripts/dev.sh | 8 +++++++- site | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/dev.sh b/scripts/dev.sh index 43f3688..1734697 100755 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -17,7 +17,13 @@ fi # Start edit sidecar if requested if [[ "$*" == *"--edit"* ]]; then echo "Starting edit sidecar on :8001..." - (cd "$ROOT" && uvicorn edit.server:app --reload --port 8001) & + UVICORN="$ROOT/.venv/bin/uvicorn" + if [ ! -x "$UVICORN" ]; then + echo "Setting up Python venv..." + python3 -m venv "$ROOT/.venv" + "$ROOT/.venv/bin/pip" install -r "$ROOT/edit/requirements.txt" -q + fi + (cd "$ROOT" && "$UVICORN" edit.server:app --reload --port 8001) & SIDECAR_PID=$! trap "kill $SIDECAR_PID 2>/dev/null" EXIT fi diff --git a/site b/site index 4ebc4c7..5786fd8 160000 --- a/site +++ b/site @@ -1 +1 @@ -Subproject commit 4ebc4c798c681029845385f3f801b3e120c97799 +Subproject commit 5786fd827fef80fc952ff72549a080d15ce3f6da