Created
March 8, 2013 05:49
-
-
Save orther/5114473 to your computer and use it in GitHub Desktop.
-- `pip` for my restricted user This script runs `pip` located in $PYTHONPATH with -t (target dir) set as $PYTHONPATH
This file contains hidden or 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 | |
PIP="$PYTHONPATH/pip $1" | |
# add target dir for install and uninstall | |
[[ "$1" = *install ]] && PIP="$PIP -t $PYTHONPATH" | |
# remove first arg since it is in $PIP | |
shift | |
$PIP "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment