diff options
author | Chris <[email protected]> | 2020-05-12 14:52:05 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2020-05-12 14:52:05 -0400 |
commit | bfaf9db7a591c80468fcfdb27d7d6db1c22962cd (patch) | |
tree | 302649eb0b17149a4db01cde4919e588d4990825 | |
parent | da1a911ee348f9b9cbd0872474969dd53de98f14 (diff) |
update pip install
-rwxr-xr-x | utils/install.sh | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/utils/install.sh b/utils/install.sh index 95081ec9..46d93f49 100755 --- a/utils/install.sh +++ b/utils/install.sh @@ -26,13 +26,28 @@ installnode() { \ npm i -g neovim } -installpip() { \ - echo "Installing pip..." +installpiponmac() { \ sudo curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3 get-pip.py rm get-pip.py } +installpiponubuntu() { \ + sudo apt install python3-pip +} + +installpiponarch() { \ + pacman -S python-pip +} + +installpip() { \ + echo "Installing pip..." + [ "$(uname)" == "Darwin" ] && installpiponmac + [ -n "$(uname -a | grep Ubuntu)" ] && installpiponubuntu + [ -f "/etc/arch-release" ] && installpiponarch + [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported" +} + installpynvim() { \ echo "Installing pynvim..." pip3 install pynvim @@ -90,6 +105,7 @@ pipinstallueberzug() { \ installonubuntu() { \ sudo apt install ripgrep fzf ranger + sudo apt install libjpeg8-dev zlib1g-dev python-dev python3-dev libxtst-dev pip3 install ueberzug } @@ -109,12 +125,11 @@ installextrapackages() { \ # Welcome echo 'Installing Nvim Mach 2' -echo 'Please make sure you have pip installed' # install pip -which pip3 > /dev/null && echo "pip installed, moving on..." +which pip3 > /dev/null && echo "pip installed, moving on..." || asktoinstallpip # install node and neovim support -which node > /dev/null && echo "node installed, moving on..." || installnode +which node > /dev/null && echo "node installed, moving on..." || asktoinstallnode # install pynvim |