-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
49 lines (42 loc) · 1.28 KB
/
Copy pathsetup.sh
File metadata and controls
49 lines (42 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
echo "============================================"
echo " MemoryMesh Setup"
echo "============================================"
# --- Detect OS ---
case "$(uname -s)" in
Linux*) OS=linux ;;
Darwin*) OS=macos ;;
*) echo "Unsupported OS: $(uname -s)"; exit 1 ;;
esac
echo "[1/4] Platform: $OS"
# --- Create .env if missing ---
if [ ! -f .env ]; then
echo "[2/4] Creating .env from .env.example..."
cp .env.example .env
echo " -> Edit .env to set your LLM endpoint and model."
else
echo "[2/4] .env already exists, skipping."
fi
# --- Create virtual environment ---
if [ ! -d .venv ]; then
echo "[3/4] Creating Python virtual environment..."
python3 -m venv .venv
else
echo "[3/4] Virtual environment already exists, skipping."
fi
# --- Activate & install ---
echo "[4/4] Installing MemoryMesh..."
source .venv/bin/activate
pip install -e ".[test]"
echo ""
echo "============================================"
echo " Setup complete!"
echo "============================================"
echo ""
echo " Activate: source .venv/bin/activate"
echo " Start: python -m memorymesh"
echo " Test: python -m pytest tests/ -v"
echo ""