16 lines
329 B
Bash
Executable file
16 lines
329 B
Bash
Executable file
[ -d venv ]
|
|
FIRST_RUN=$?
|
|
|
|
# Create and enter virtual environment
|
|
if (( $FIRST_RUN )); then
|
|
echo Creating virtual environment
|
|
python3 -m venv venv
|
|
fi
|
|
source venv/bin/activate
|
|
|
|
# Install required python packages
|
|
if (( $FIRST_RUN )); then
|
|
echo Installing required Python packages
|
|
pip install -Ur requirements.txt
|
|
fi
|