Skip to content

Instantly share code, notes, and snippets.

@keokilee
Created March 12, 2011 00:40
Show Gist options
  • Save keokilee/866868 to your computer and use it in GitHub Desktop.
Save keokilee/866868 to your computer and use it in GitHub Desktop.
Creates a virtual env with Pinax if it doesn't exist.
#!/bin/bash
if [ -d ".env" ]; then
echo "**> virtualenv exists"
else
echo "**> creating virtualenv"
virtualenv .env
echo "**> Downloading Pinax"
curl http://downloads.pinaxproject.com/Pinax-0.7.3-bundle.tar.gz -o Pinax-0.7.3-bundle.tar.gz
echo "**> Extracting Pinax"
tar -xf Pinax-0.7.3-bundle.tar.gz
echo "**> Installing Pinax in virtualenv .env"
python Pinax-0.7.3-bundle/scripts/pinax-boot.py .env
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment