Skip to content

Instantly share code, notes, and snippets.

@Steap
Created June 13, 2020 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Steap/b43c6bbcf54d57657c0a745531573a61 to your computer and use it in GitHub Desktop.
Save Steap/b43c6bbcf54d57657c0a745531573a61 to your computer and use it in GitHub Desktop.
#/bin/sh
set -u
VENV=/tmp/.upt-venv
create_venv () {
echo "[+] Creating virtual environment"
python3 -m venv $VENV
. $VENV/bin/activate
pip install wheel
echo "[+] Installing upt"
pip install git+https://framagit.org/upt/upt@update
echo "[+] Installing upt-pypi"
pip install upt-pypi
echo "[+] Installing upt-rubygems"
pip install upt-rubygems
echo "[+] Installing upt-macports"
pip install git+https://www.github.com/Steap/upt-macports@feature/update
}
[ -d $VENV ] || create_venv && deactivate
. $VENV/bin/activate
echo "Running $(which upt) $@"
upt $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment