Last active
December 23, 2015 07:08
-
-
Save dmora/6598382 to your computer and use it in GitHub Desktop.
New Vagrant Machine recipe (python)
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
sudo apt-get update | |
sudo apt-get install git-core | |
sudo apt-get install python-pip python-dev build-essential | |
sudo apt-get install libxml2-dev | |
sudo apt-get install libxslt1-dev | |
sudo pip install --upgrade pip | |
sudo pip install virtualenvwrapper | |
sudo apt-get install libmysqlclient-dev | |
echo "export WORKON_HOME=$HOME/.virtualenvs" >> .bashrc | |
echo "export PROJECT_HOME={path to project}" >> .bashrc | |
echo "source /usr/local/bin/virtualenvwrapper.sh" >> .bashrc | |
mkvirtualenv {your project} | |
cd $PROJECT_HOME | |
pip install -r requirements.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment