Skip to content

Instantly share code, notes, and snippets.

@muhuk
Created May 25, 2010 06:15
Show Gist options
  • Save muhuk/412837 to your computer and use it in GitHub Desktop.
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
#!/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