From b6cc7f5c6b598b26c22550a91a1d46a78a10d0ee Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Sun, 9 Sep 2018 00:46:11 -0400 Subject: [PATCH] [provisioning] Upgrade python and pyenv --- recipes/python | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/recipes/python b/recipes/python index 4a399c8..cd1512f 100644 --- a/recipes/python +++ b/recipes/python @@ -2,9 +2,10 @@ # Description: The Python programming language set -e -__PYTHON_VERSION=3.6.4 +__PYTHON_VERSION=3.7.0 _recipe _path +_recipe git case $_PLATFORM in darwin) @@ -20,7 +21,9 @@ case $_PLATFORM in _apt $dep done if [ ! -d ~/.pyenv ]; then - _run "Install pyenv" bash <(curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer) + _run "[git] Install pyenv" bash <(curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer) + else + _run "[git] Upgrade pyenv" git -C $(pyenv root) pull fi _path "${HOME}/.pyenv/bin" ;; @@ -32,6 +35,6 @@ _profile 'pyenv global $(pyenv versions --bare --skip-aliases | egrep "^(\.?[[:d if ! [ -d ~/.pyenv/versions/${__PYTHON_VERSION} ]; then - _run "Install python ${__PYTHON_VERSION}" pyenv install ${__PYTHON_VERSION} + _run "[pyenv] Install python ${__PYTHON_VERSION}" pyenv install ${__PYTHON_VERSION} fi pyenv global ${__PYTHON_VERSION}