Recipe to get a development environment for lettuce in a fresh install of Debian Squeeze.
The following values are used below. You may customize them depending on your needs.
# Lettuce installation directory.
lettuce_dir=~/lettuce
# Virtualenv directory.
lettuce_env_dir=$lettuce_dir
# Git.
upstream_url="https://github.com/gabrielfalcao/lettuce.git"
fork_url=$upstream_url
# System's package manager.
system-install() { su -c "aptitude install ${*}" }
Execute the following commands:
system-install python-dev python-virtualenv git libxml2-dev libxslt-dev
git clone $fork_url $lettuce_dir
# Configure upstream
cd $lettuce_dir
git remote add upstream $upstream_url
virtualenv --distribute --no-site-packages $lettuce_env_dir
source $lettuce_env_dir/bin/activate
cd $lettuce_dir
pip install -r requirements.txt
python setup.py develop
You should be able to run lettuce and tests.
lettuce --help
Go back to :doc:/dev/index and learn about :doc:/dev/testing.