Created
April 8, 2011 03:00
-
-
Save jbalogh/909205 to your computer and use it in GitHub Desktop.
Install all the tools you need to get playdoh set up.
This file contains hidden or 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
# pip is a tool for installing Python packages. | |
sudo easy_install pip | |
# Essential tools for any self-respecting Python programmer. | |
sudo pip install virtualenv virtualenvwrapper ipython | |
# This is where we keep Python environments. | |
mkdir ~/.virtualenvs | |
# Set up our shell for virtualenvwrapper. | |
cat >>~/.bashrc <<EOF | |
export WORKON_HOME=\$HOME/.virtualenvs | |
source `which virtualenvwrapper.sh` | |
EOF | |
# Pick up the new config. | |
source .bashrc | |
# Create a clean environment. | |
mkvirtualenv --no-site-packages tutorial | |
# Turn on the new environment. | |
workon tutorial | |
# Install some packages that require a C compiler. | |
pip install py-bcrypt jinja2 | |
# Use one of these to get playdoh. git is the slowest option. | |
## git clone --recursive git://github.com/mozilla/playdoh.git tutorial | |
## wget -O- http://people.mozilla.com/~jbalogh/tutorial.tgz | tar xzf - | |
## curl http://people.mozilla.com/~jbalogh/tutorial.tgz | tar xzf - | |
cd tutorial/ | |
# Set up our local settings. | |
cp settings_local.py-dist settings_local.py | |
# Change mysql to sqlite3 to simplify the tutorial. | |
vim settings_local.py | |
## perl -pi -e 's/mysql/sqlite3/' | |
./manage.py shell | |
./manage.py runserver | |
# Ubuntu junk | |
# sudo apt-get install python-setuptools git-core |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment