From b7c368262b0706c1059bee613863f1dc93cbff19 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Sun, 28 Nov 2021 11:39:40 +0100 Subject: [PATCH] chore(python): add install script for Python --- setup/init.sh | 3 +++ setup/python.sh | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100755 setup/python.sh diff --git a/setup/init.sh b/setup/init.sh index b0dd262..effcc41 100644 --- a/setup/init.sh +++ b/setup/init.sh @@ -7,5 +7,8 @@ source ./nvm.sh # Installing global Node.js modules source ./npm.sh +# Installing Python version manager +source ./python.sh + # Install global Gems source ./gem.sh diff --git a/setup/python.sh b/setup/python.sh new file mode 100755 index 0000000..2665064 --- /dev/null +++ b/setup/python.sh @@ -0,0 +1,24 @@ + #!/bin/sh + +# Install Pyenv + curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash + +# Activate Pyenv +export PATH="~/.pyenv/bin:$PATH" +eval "$(pyenv init -)" +eval "$(pyenv virtualenv-init -)" + +pyenv install 2.7.17 +pyenv install 3.8.5 + +pyenv virtualenv 2.7.17 neovim2 +pyenv virtualenv 3.8.5 neovim3 + +pyenv activate neovim2 +pip2 install neovim + +pyenv activate neovim3 +pip3 install neovim + +pip3 install awscli +