mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-23 03:00:08 +00:00
[provisioning] Fix pyenv installation under OSX
This commit is contained in:
parent
34ddf11016
commit
34c6439b83
1 changed files with 5 additions and 3 deletions
|
@ -3,6 +3,8 @@ set -e
|
|||
|
||||
__PYTHON_VERSION=3.6.4
|
||||
|
||||
_recipe _path
|
||||
|
||||
case $_PLATFORM in
|
||||
darwin)
|
||||
_recipe brew
|
||||
|
@ -19,13 +21,13 @@ case $_PLATFORM in
|
|||
if [ ! -d ~/.pyenv ]; then
|
||||
_run "Install pyenv" bash <(curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer)
|
||||
fi
|
||||
_recipe _path
|
||||
_path "${HOME}/.pyenv/bin"
|
||||
_profile 'eval "$(pyenv init -)"'
|
||||
_profile 'eval "$(pyenv virtualenv-init -)"'
|
||||
;;
|
||||
esac
|
||||
|
||||
_profile 'eval "$(pyenv init -)"'
|
||||
_profile 'eval "$(pyenv virtualenv-init -)"'
|
||||
|
||||
if ! [ -d ~/.pyenv/versions/${__PYTHON_VERSION} ]; then
|
||||
_run "Install python ${__PYTHON_VERSION}" pyenv install ${__PYTHON_VERSION}
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue