2. Installing CherryPy from the Subversion repository

2.1. Obtaining the package from the Subversion repository

The CherryPy project uses Subversion to control access to its source code. Getting CherryPy from the latest changeset is sometimes required because a bugfix or a feature is only available from it. Keep in mind that subversion code is subject to change on a regular basis; therefore, only use it if you know what you are doing.

To get the latest source code from the subversion repository, you first need to install a SVN client. On Microsoft Windows, TortoiseSVN is a good choice. Under Linux, you can either use the svn command line tools or use a graphical user interface such as eSVN.

Once you have installed a svn client, you need to type the following command :

svn {co} {http://svn.cherrypy.org}

This will download the complete source code to your computer.

2.2. Installing the package from the Subversion repository

If you have downloaded the source code from the CherryPy subversion repository, then you should have a directory called svn.cherrypy.org. Then type the following commands:

cd {svn.cherrypy.org/trunk}

Then issue the following command (as root if you are under Unix/Linux):

python {setup.py} {install}

Alternately, since CherryPy has no dependencies, you don't have to run setup.py. Instead, checkout /trunk/cherrypy into a directory which is on your Python path, such as site-packages/cherrypy.