chore(python): add install script for Python

This commit is contained in:
Stefan Imhoff
2021-11-28 11:39:40 +01:00
parent 6ea383db24
commit b7c368262b
2 changed files with 27 additions and 0 deletions

View File

@@ -7,5 +7,8 @@ source ./nvm.sh
# Installing global Node.js modules # Installing global Node.js modules
source ./npm.sh source ./npm.sh
# Installing Python version manager
source ./python.sh
# Install global Gems # Install global Gems
source ./gem.sh source ./gem.sh

24
setup/python.sh Executable file
View File

@@ -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