Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A zc.buildout recipe for installing pygtk, pyobject and pycairo.

Project Description

A zc.buildout recipe for installing pygtk, including pygobject and pycairo.

This recipe concerns itself with the Python bindings to the GTK+ library and its dependencies, GObject and Cairo. It assumes that the C libraries are available on the system already, along with their header files.

This recipe appears to be reliable, but the feature set is basically determined by the author’s immediate needs. Don’t hesitate to send questions, bug reports, suggestions, or patches to <>.


Configuration options:
pycairo-url:URL of the pycairo source code archive to be built.
pycairo-md5sum:MD5 checksum of the pycairo source code archive.
pygobject-url:URL of the pygobject source code archive to be built. If this option is given but left empty, the recipe will build only pycairo. The pygtk-url option must be given and left empty as well in this case as pygtk depends on pygobject.
 MD5 checksum of the pygobject source code archive.
pygtk-url:URL of the pygtk source code archive to be built. If this option is given but left empty, the recipe will not build pygtk. The pygobject-url option may or may not be empty in this case.
pygtk-md5sum:MD5 checksum of the pygtk source code archive.

The default values of these options correspond to the latest project versions at the time the recipe was released.

Exported options:
location:Location of the buildout part containing the compiled Python bindings.
path:Filesystem path to be added to the Python path in order for the bindings to be importable. This may be included in a zc.recipe.egg part’s extra-paths option, for example.


There are two reasons for the existence of this recipe: setting up the build environment for pygtk & friends, and tying together the build instructions of the related projects for convenience.

The pygtk, pygobject and pycairo projects are built using a standard configure/make/make install procedure. Unfortunately, they don’t offer a configure option for specifying which Python installation to use, but attempt to install into the site packages path of the first python executable found on the system’s binary search path. This recipe has to set up a fake executable and corresponding PATH variable for the build processes.

Change log

For a continuously updated change log, see <>.


This package is written by Thomas Lotze. Please contact the author at <> to provide feedback, suggestions, or contributions.

See also <>.

Release History

History Node


History Node


History Node


This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(5.7 kB) Copy SHA256 Hash SHA256
Source None May 14, 2009

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting