Installation on Debian Squeeze

Recipe to get a development environment for lettuce in a fresh install of Debian Squeeze.

Variables

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 ${*}" }

Install system dependencies

Execute the following commands:

system-install python-dev python-virtualenv git libxml2-dev libxslt-dev

Get sources

git clone $fork_url $lettuce_dir
# Configure upstream
cd $lettuce_dir
git remote add upstream $upstream_url

Create virtualenv

virtualenv --distribute --no-site-packages $lettuce_env_dir
source $lettuce_env_dir/bin/activate
cd $lettuce_dir
pip install -r requirements.txt

Install lettuce in develop mode

python setup.py develop

Check installation

You should be able to run lettuce and tests.

lettuce --help

Done!

Go back to Development guidelines and learn about Testing.