[mod] utils/lib.sh: add pyenv.activate

* initialize virtualenv (pyenv.install)
* activate virtualenv

close #310
This commit is contained in:
Alexandre Flament 2021-09-17 10:44:29 +02:00
parent 8905607d1c
commit e5e322e8ed
2 changed files with 28 additions and 18 deletions

View file

@ -725,6 +725,14 @@ pyenv.cmd() {
)
}
pyenv.activate() {
pyenv.install
# shellcheck source=/dev/null
source "${PY_ENV_BIN}/activate"
}
# Sphinx doc
# ----------