-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·43 lines (32 loc) · 1.02 KB
/
bootstrap.sh
File metadata and controls
executable file
·43 lines (32 loc) · 1.02 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
#!/usr/bin/env bash
set -e
REQUIRED_PYTHON="3.10"
echo "🔍 Checking Python version..."
if command -v python3.10 >/dev/null 2>&1; then
PYTHON=python3.10
elif command -v python3 >/dev/null 2>&1; then
PYTHON=python3
else
echo "❌ Python not found. Please install Python 3.10."
exit 1
fi
VERSION=$($PYTHON -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')
if [[ "$VERSION" != "$REQUIRED_PYTHON" ]]; then
echo "❌ Python $REQUIRED_PYTHON required. Found Python $VERSION."
echo "👉 Please install Python 3.10 and re-run this script."
exit 1
fi
echo "✅ Python $VERSION detected"
echo "📦 Creating virtual environment..."
$PYTHON -m venv .venv
echo "⚙️ Activating virtual environment..."
source .venv/bin/activate
echo "⬇️ Installing dependencies..."
pip install --upgrade pip
pip install -r requirements.lock
echo "🔧 Installing podvoice..."
pip install -e .
echo ""
echo "🎉 Podvoice is ready!"
echo "👉 Run: source .venv/bin/activate"
echo "👉 Then: podvoice --help"