-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
62 lines (48 loc) · 1.45 KB
/
Copy pathsetup.sh
File metadata and controls
62 lines (48 loc) · 1.45 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
#!/bin/bash
# Compiler Copilot Setup Script
set -e
echo "🚀 Setting up Compiler Copilot..."
# Check Python version
PYTHON_VERSION=$(python3 --version 2>&1 | awk '{print $2}')
REQUIRED_VERSION="3.9"
if [ "$(printf '%s\n' "$REQUIRED_VERSION" "$PYTHON_VERSION" | sort -V | head -n1)" != "$REQUIRED_VERSION" ]; then
echo "❌ Python 3.9+ required. Found: $PYTHON_VERSION"
exit 1
fi
echo "✅ Python version: $PYTHON_VERSION"
# Create virtual environment
if [ ! -d "venv" ]; then
echo "📦 Creating virtual environment..."
python3 -m venv venv
fi
# Activate virtual environment
source venv/bin/activate
# Upgrade pip
echo "📦 Upgrading pip..."
pip install --upgrade pip
# Install dependencies
echo "📦 Installing dependencies..."
pip install -r requirements.txt
# Create necessary directories
echo "📁 Creating directory structure..."
mkdir -p src/{mcp,debugger,compiler,llm,shell}
mkdir -p config
mkdir -p examples
mkdir -p tests
mkdir -p logs
# Create config file if it doesn't exist
if [ ! -f "config/.env" ]; then
echo "📝 Creating configuration file..."
cp config/env.example config/.env
echo "⚠️ Please edit config/.env with your settings"
fi
# Make scripts executable
chmod +x compiler-copilot.sh
chmod +x src/shell/interactive.py
echo "✅ Setup complete!"
echo ""
echo "Next steps:"
echo "1. Edit config/.env with your settings"
echo "2. Run: source venv/bin/activate"
echo "3. Run: ./compiler-copilot.sh"
# Made with Bob