Created
July 6, 2015 15:15
-
-
Save sdague/f4fc322362d02b3f8d8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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