-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
36 lines (27 loc) · 811 Bytes
/
setup.sh
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
set -euo pipefail
echo "Setting up vPIC migration environment..."
# Check if python3 is installed
if ! command -v python &> /dev/null; then
echo "Python is required but not installed. Please install Python first."
exit 1
fi
# Check if pip3 is installed
if ! command -v pip &> /dev/null; then
echo "pip is required but not installed. Please install pip first."
exit 1
fi
# Create virtual environment if it doesn't exist
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python -m venv venv
fi
# Activate virtual environment
source .venv/bin/activate
# Install requirements
echo "Installing Python dependencies..."
pip install -r requirements.txt
# Install ODBC driver for Mac
if [[ "$OSTYPE" == "darwin"* ]]; then
fi
echo "Setup completed successfully!"