GNU Autotools - install method 1 - preferred method -------------------------------- Using the same install method of install as cairo - GNU autotools. $ python -c "import sys; print sys.prefix" # make a note of the python prefix $ ./configure --prefix= $ make $ make install # may require superuser access To build from CVS, use this line instead of the configure line above: $ ./autogen.sh --prefix= If you're installing to another prefix than the one where Python is installed Python will not be able to find the cairo module until you add $prefix/lib/pythonX.Y/site-packages to the PYTHONPATH variable. Waf - install method 2 - alternative install method ---------------------- $ ./waf --help # shows available waf options $ ./waf configure $ ./waf build $ ./waf install Python distutils - install method 3 - alternative install method ----------------------------------- $ python setup.py install Testing ------- testing uses py.test from pylib http://codespeak.net/py/dist/ $ cd test $ py.test