Skip to content

Instantly share code, notes, and snippets.

@citricacid-pl
Last active August 29, 2015 14:07
Show Gist options
  • Save citricacid-pl/3152b0ce7b9110321686 to your computer and use it in GitHub Desktop.
Save citricacid-pl/3152b0ce7b9110321686 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Install virtualenvwrapper and packages needed to run DjangoCMS
sudo apt-get install -y build-essential python-pip python-dev libjpeg8-dev zlib1g-dev libtiff4-dev libfreetype6-dev
sudo pip install --upgrade virtualenv
sudo pip install virtualenvwrapper
mkdir ~/.virtualenvs
export WORKON_HOME=~/.virtualenvs
if grep -q "\/usr\/local\/bin\/virtualenvwrapper\.sh" ~/.bashrc
then
echo ''
else
echo ". /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
. $HOME/.bashrc
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment