#!/usr/bin/env bash
export PYTHON_KEYRING_BACKEND="keyring.backends.null.Keyring"
export PROJECT_NAME="hyperfast-course-template"
PROJECT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export PROJECT_ROOT
VIRTUAL_ENV="./.venv"
if [ -e "${VIRTUAL_ENV}/bin/activate" ]; then
    # shellcheck disable=SC1091
    source "${VIRTUAL_ENV}/bin/activate"
else
    make install
    # shellcheck disable=SC1091
    source "${VIRTUAL_ENV}/bin/activate"
    python3 -m ensurepip --upgrade
    python3 -m pip install --upgrade pip setuptools wheel
fi
