From 642000aaa88ac5e3db8f407acf83c98accb590b4 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 2 Mar 2019 18:09:47 -0500 Subject: [PATCH] P in progs.csv for pycuck packages --- larbs.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/larbs.sh b/larbs.sh index e77f510..0d1c86f 100644 --- a/larbs.sh +++ b/larbs.sh @@ -97,6 +97,12 @@ aurinstall() { \ sudo -u "$name" $aurhelper -S --noconfirm "$1" >/dev/null 2>&1 } +pipinstall() { \ + dialog --title "LARBS Installation" --infobox "Installing the Python package \`$1\` ($n of $total). $1 $2" 5 70 + command -v pip || pacman -S --noconfirm --needed python-pip >/dev/null 2>&1 + yes | pip install "$1" + } + installationloop() { \ ([ -f "$progsfile" ] && cp "$progsfile" /tmp/progs.csv) || curl -Ls "$progsfile" | sed '/^#/d' > /tmp/progs.csv total=$(wc -l < /tmp/progs.csv) @@ -108,6 +114,7 @@ installationloop() { \ "") maininstall "$program" "$comment" ;; "A") aurinstall "$program" "$comment" ;; "G") gitmakeinstall "$program" "$comment" ;; + "P") pipinstall "$program" "$comment" ;; esac done < /tmp/progs.csv ;}