Next: , Previous: Requirements, Up: Installation

2.3 Installing the code

The Distribution Packages

Buildbot comes in two parts: buildbot (the master) and buildbot-slave (the slave). The two can be installed individually or together.

Installation From PyPI

The easiest way to install Buildbot is using 'pip'. For the master:

     pip install buildbot

and for the slave:

     pip install buildbot-slave

Installation From Tarballs

Buildbot and Buildslave can also be installed using the standard python distutils process. For either component (buildbot or buildbot-slave), after unpacking the tarball, the process is:

     python build
     python install

where the install step may need to be done as root. This will put the bulk of the code in somewhere like /usr/lib/python2.3/site-packages/buildbot. It will also install the buildbot command-line tool in /usr/bin/buildbot.

If the environment variable $NO_INSTALL_REQS is set to '1', then will not try to install Buildbot's requirements. This is usually only useful when building a Buildbot package.

To test this, shift to a different directory (like /tmp), and run:

     buildbot --version
     # or
     buildslave --version

If it shows you the versions of Buildbot and Twisted, the install went ok. If it says no such command or it gets an ImportError when it tries to load the libaries, then something went wrong. pydoc buildbot is another useful diagnostic tool.

Windows users will find these files in other places. You will need to make sure that python can find the libraries, and will probably find it convenient to have buildbot on your PATH.