To create a virtual environment and install CKAN into it:
git clone git://gist.github.com/2206132.git python 2206132/ckan-bootstrap.py pyenv
This makes a directory
pyenv in the current working directory, creates a
virtual environment in the pyenv dir, and installs CKAN (and all CKAN's
dependencies) into the virtual environment.
Activate the virtual environment and run the CKAN tests: