Skip to content

Instantly share code, notes, and snippets.

@sdague
Created July 6, 2015 15:15
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 sdague/f4fc322362d02b3f8d8f to your computer and use it in GitHub Desktop.
Save sdague/f4fc322362d02b3f8d8f to your computer and use it in GitHub Desktop.
#!/bin/bash
set -x
set -e
function install_in_venv {
local name=$1
local bins=$2
local venv=~/bin/.venv-$name
virtualenv $venv
$venv/bin/pip install -U $1
for i in $bins; do
ln -s ~/bin/.venv-$name/bin/$i ~/bin/
done
}
pkg=$1
shift
install_in_venv $pkg $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment