This repository has been archived on 2022-02-20. You can view files and clone it, but cannot push or open issues/pull-requests.
2020-12-26 12:29:24 -08:00
|
|
|
#!/bin/bash
|
2020-11-20 15:48:57 -08:00
|
|
|
alias python3="python3.8"
|
|
|
|
alias spip="sudo -H python3.8 -m pip"
|
|
|
|
alias spipi="sudo -H python3.8 -m pip install"
|
|
|
|
alias spipiu="sudo -H python3.8 -m pip install -U"
|
|
|
|
alias spipl="sudo -H python3.8 -m pip list"
|
|
|
|
alias spiplo="sudo -H python3.8 -m pip list --outdated"
|
2020-12-26 12:29:24 -08:00
|
|
|
alias pip3="sudo -H python3.8 -m pip"
|
2020-11-20 15:48:57 -08:00
|
|
|
alias pipu="pipx upgrade"
|
|
|
|
alias pipua="pipx upgrade-all"
|
|
|
|
alias pipupip="pipx upgrade pipx"
|
|
|
|
alias pipi="pipx install"
|
|
|
|
alias pipl="pipx list"
|
|
|
|
alias piplv="pipx list --verbose"
|
2020-12-26 12:29:24 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spipua () {
|
|
|
|
module_load confirm
|
|
|
|
echo upgrading all base python packages - requires sudo access
|
|
|
|
# sudo -H python3.8 -m pip list --outdated
|
|
|
|
local List
|
|
|
|
local Ver=${1:-3.8}
|
|
|
|
List="$(sudo -H python$Ver -m pip list -o --format columns)"
|
|
|
|
echo "$List"
|
|
|
|
confirm "ATTENTION: upgrade all these packages at once??" || return 0
|
|
|
|
echo "$List" | cut -d' ' -f1 | xargs -n1 sudo -H python$Ver -m pip install -U
|
|
|
|
}
|