Skip to content

Instantly share code, notes, and snippets.

@yaanno
Created February 23, 2010 20:23
Show Gist options
  • Save yaanno/312660 to your computer and use it in GitHub Desktop.
Save yaanno/312660 to your computer and use it in GitHub Desktop.
#!/bin/sh
# This hook is run after a new virtualenv is activated.
echo "----------------------------------------------------------------------"
echo "Setting up the layout taken from http://github.com/yaanno/budapest-py/"
echo "Please chose a layout (minimal|django|djangodzilla|none):"
read layout
if [ $layout == 'minimal' ]; then
req_file='http://github.com/yaanno/budapest-py/raw/master/requirements.minimal.txt'
elif [ $layout == 'django' ]; then
req_file='http://github.com/yaanno/budapest-py/raw/master/requirements.django.txt'
elif [ $layout == 'djangodzilla' ]; then
req_file='http://github.com/yaanno/budapest-py/raw/master/requirements.djangodzilla.txt'
else
echo "Doing nothing. Enjoy your day."
fi
if [ $req_file ]; then
echo "----------------------------------------------------------------------"
echo "Setting up the layout taken from $req_file"
pip install -E $VIRTUAL_ENV -r $req_file
echo "----------------------------------------------------------------------"
echo "Doing well. Enjoy your day."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment