-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env
35 lines (26 loc) · 824 Bytes
/
.env
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
if [ -z "$cc" ]
then
export cc="TRUE"
# Define the path to the virtual environment
VENV_PATH="/home/ec2-user/.environments/cc"
# If the virtual environment directory doesn't exist, create it
if [ ! -d "$VENV_PATH" ]; then
python3.11 -m venv "$VENV_PATH"
fi
# Activate the virtual environment
source "$VENV_PATH/bin/activate"
# Upgrade pip
pip install --upgrade pip
# Check if Jinja2 is installed, if not, install it
if ! pip freeze | grep -q 'jinja2'; then
pip install jinja2
fi
# Upgrade Jinja2
pip install --upgrade jinja2
# Check if Copier is installed and the version is 9.2.0, if not, install it
if ! pip freeze | grep -q 'copier==9.2.0'; then
pip install 'copier==9.2.0'
fi
pip install copier_templates_extensions
export PYTHONPATH="${PYTHONPATH}:${PWD}"
fi