-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·88 lines (72 loc) · 2.41 KB
/
install.sh
File metadata and controls
executable file
·88 lines (72 loc) · 2.41 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/bash
# Local development install
# Usage: ./install.sh [version]
# Examples:
# ./install.sh # Install current version from source (editable)
# ./install.sh 0.5.1 # Bump to 0.5.1 and install
set -e
VERSION="${1:-}"
# If version provided, bump it first
if [ -n "$VERSION" ]; then
echo "Bumping version to $VERSION..."
# Update version in pyproject.toml
sed -i "s/^version = \".*\"/version = \"$VERSION\"/" pyproject.toml
# Update CLI version in main.py
sed -i "s/@click.version_option(version=\".*\"/@click.version_option(version=\"$VERSION\"/" packages/cli/src/aurora_cli/main.py
echo "✓ Version bumped to $VERSION"
echo ""
fi
# Clean stale metadata (prevents permission/timestamp errors)
rm -rf src/*.egg-info build/ 2>/dev/null || true
echo "Installing all Aurora packages..."
echo ""
# Install all sub-packages first (in dependency order)
echo "Installing sub-packages..."
pip install -e packages/core
pip install -e packages/context-code
pip install -e packages/soar
pip install -e packages/reasoning
pip install -e packages/planning
pip install -e packages/spawner
pip install -e packages/implement
pip install -e packages/cli
pip install -e packages/testing
echo ""
echo "Installing main package (aurora-actr)..."
# Try editable install first, fallback to wheel if pip is old
if pip install -e . 2>/dev/null; then
echo "✓ Installed (editable mode)"
else
echo "Editable install failed (old pip?), building wheel..."
python3 -m build -w -q
pip install dist/*.whl --force-reinstall
rm -rf dist/ build/
echo "✓ Installed (wheel mode)"
fi
echo ""
echo "Installing ML dependencies (CPU-only)..."
# Install PyTorch CPU version (avoids 3GB GPU bloat)
if pip show torch >/dev/null 2>&1; then
echo "✓ PyTorch already installed"
else
echo "Installing PyTorch (CPU version, ~190MB)..."
pip install torch --index-url https://download.pytorch.org/whl/cpu
fi
# Install sentence-transformers
if pip show sentence-transformers >/dev/null 2>&1; then
echo "✓ sentence-transformers already installed"
else
echo "Installing sentence-transformers..."
pip install sentence-transformers
fi
echo "✓ ML dependencies installed"
# Verify installation
echo ""
echo "Installed packages:"
echo "=================="
pip list | grep "^aurora" | awk '{printf " %-25s %s\n", $1, $2}'
echo ""
echo "CLI version:"
aur --version
echo ""
echo "✓ Installation complete!"