#!/usr/bin/env bash # Install local dev dependencies (use the same Python as uvicorn). set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" PY="${PY:-}" if [[ -z "${PY}" ]]; then if command -v python3.11 >/dev/null 2>&1; then PY="python3.11" else PY="python3" fi fi echo "Using Python: $($PY --version) ($("$PY" -c 'import sys; print(sys.executable)'))" "$PY" -m pip install -e "$ROOT/shared/ollama_client" "$PY" -m pip install -e "$ROOT/shared/groq_client" "$PY" -m pip install -e "$ROOT/services/governance-gateway" # memory-api runs in-process via sys.path; sqlalchemy/psycopg come from gateway deps. echo "Done. Run: ./scripts/run_gateway.sh"