Created
May 25, 2010 06:15
-
-
Save muhuk/412837 to your computer and use it in GitHub Desktop.
Script that creates a virtualenv according to the instructions from the Ministry of Packaging
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
#!/usr/bin/env sh | |
if [ $1 ]; then VIRTUALENV_PATH=$1; else VIRTUALENV_PATH=.; fi | |
echo "virtualenv path: $VIRTUALENV_PATH" | |
if [ $2 ]; then REPOSITORY=$2; echo "repository: $REPOSITORY"; fi | |
virtualenv --no-site-packages --clear --distribute $VIRTUALENV_PATH | |
cd $VIRTUALENV_PATH | |
bin/easy_install pip | |
if [ $REPOSITORY ]; then | |
git clone $REPOSITORY src | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment