-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
36 lines (28 loc) · 900 Bytes
/
setup.sh
File metadata and controls
36 lines (28 loc) · 900 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
#!/bin/bash
# Setup script for Sight Reduction project
echo "Setting up Sight Reduction project..."
# Check if Python is installed
if ! command -v python3 &> /dev/null; then
echo "Python3 is not installed. Please install Python 3.8 or higher."
exit 1
fi
# Check if pip is installed
if ! command -v pip &> /dev/null; then
echo "pip is not installed. Please install pip."
exit 1
fi
# Create a virtual environment if it doesn't exist
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
fi
# Activate the virtual environment
source venv/bin/activate
# Upgrade pip
pip install --upgrade pip
# Install dependencies
echo "Installing dependencies..."
pip install -r requirements.txt
echo "Setup complete!"
echo "To activate the virtual environment in the future, run: source venv/bin/activate"
echo "To run the main script: python src/main.py"