File size: 953 Bytes
5765ffb
 
 
f8808ea
 
5765ffb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c57bd9b
5765ffb
 
 
 
 
 
 
c57bd9b
46ddd47
2d2089f
 
46ddd47
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
#!/bin/bash

# Install necessary packages
apt-get install -y python3-venv python3-pip
apt install -y libgl1-mesa-glx

# Remove the old virtual environment if it exists and create a new one
if [ -d ".venv" ]; then
    rm -rf .venv
fi

python3 -m venv .venv

# Activate the virtual environment
if [ -f ".venv/bin/activate" ]; then
    source .venv/bin/activate
else
    echo "Failed to create the virtual environment. Please check for errors."
    exit 1
fi

# Install the uv package within the virtual environment
pip install uv

# Change directory to api and install the required packages
cd api || { echo "API directory not found"; exit 1; }


# Ensure the uv command is available
if ! command -v uv &> /dev/null; then
    echo "uv command not found. Ensure it is installed and accessible."
    exit 1
fi

uv pip install -r requirements.txt

git config --global user.name Vikramjeet Singh
git config --global user.email singh.vikram.1782000@gmail.com