-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·37 lines (30 loc) · 917 Bytes
/
setup.sh
File metadata and controls
executable file
·37 lines (30 loc) · 917 Bytes
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
#!/bin/bash
# Minimal environment setup script for molax
# Usage: source setup.sh
set -e
echo "🚀 Setting up molax development environment..."
# Install uv if not already installed
if ! command -v uv &> /dev/null; then
echo "📦 Installing uv..."
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.cargo/bin:$PATH"
fi
# Create virtual environment if it doesn't exist
if [ ! -d ".venv" ]; then
echo "🔨 Creating virtual environment..."
uv venv
fi
# Activate virtual environment
echo "✨ Activating virtual environment..."
source .venv/bin/activate
# Install package with dev dependencies
echo "📚 Installing molax with dev dependencies..."
uv pip install -e .[dev]
echo ""
echo "✅ Environment setup complete!"
echo ""
echo "To activate this environment in the future, run:"
echo " source .venv/bin/activate"
echo ""
echo "To deactivate, run:"
echo " deactivate"