20 lines
543 B
Bash
Executable file
20 lines
543 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2023 Julian Müller (ChaoticByte)
|
|
|
|
# change to correct directory, if necessary
|
|
script_absolute=$(realpath "$0")
|
|
script_directory=$(dirname "$script_absolute")
|
|
desired_directory=$(realpath "$script_directory"/..)
|
|
if [ "$PWD" != "$desired_directory" ]; then
|
|
echo "Changing to project directory..."
|
|
cd "$desired_directory"
|
|
fi
|
|
|
|
echo "Creating venv..."
|
|
python3 -m venv ./venv
|
|
|
|
echo "Activating venv..."
|
|
source ./venv/bin/activate
|
|
|
|
echo "Installing dependencies..."
|
|
python3 -m pip install -r requirements.txt
|