X-Git-Url: https://git.mar77i.info/?a=blobdiff_plain;f=setup_venv.sh;h=894aad539ad92c9da9377d873fab5cb6046cec8d;hb=refs%2Fheads%2Fmaster;hp=91fc1e716e0d8fe9838068a9e520d986ec65316d;hpb=c0e574584af0d45070e5fa81fcbcd1dccc2c5a42;p=hublib diff --git a/setup_venv.sh b/setup_venv.sh index 91fc1e7..894aad5 100644 --- a/setup_venv.sh +++ b/setup_venv.sh @@ -1,10 +1,11 @@ venv_dir="${VIRTUAL_ENV:-venv}" -if type deactivate &>/dev/null; then +if type -f deactivate &>/dev/null; then deactivate fi -if [[ ! -d "${venv_dir}" ]]; then +if [[ ! -e "${venv_dir}" ]]; then "${PYTHON:-python}" -m venv "${venv_dir}" fi source "${venv_dir}/bin/activate" pip install -qU pip -pip install -qU 'uvicorn[standard]' falcon black pip redis isort Jinja2 +pip install -qU 'uvicorn[standard]' falcon black pip redis isort \ + Jinja2 jinja2-simple-tags