fix: pyenv venv init

This commit is contained in:
Andrejus Kostarevas
2021-06-28 15:31:52 +01:00
parent 27c3473936
commit 0bc1d3d96c
3 changed files with 10 additions and 2 deletions

View File

@@ -7,6 +7,12 @@ if ! bin_in_path "pyenv"; then
# see https://github.com/pyenv/pyenv-installer
download_run "https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer" \
bash
fi
virtualenv_path="$(pyenv root)/plugins/pyenv-virtualenv"
if [ ! -d "$virtualenv_path" ]; then
git clone https://github.com/pyenv/pyenv-virtualenv.git $virtualenv_path
fi
eval "$(pyenv init --path)"