Reference: Modern pyGTK+ stack on RHEL 5
2012 November 20
Certain software projects like to target “enterprise”-class Linux distributions that have super old versions of certain key pieces of software. If, for instance, you want to actually use a somewhat modern GTK+ from Python, here’s the ordered list of dependencies that you’ll need to install:
-
Python >= 2.6. (Versus the 2004-vintage Python 2.4 that comes by default on RHEL 5.) CASA bundles Python 2.6.5 and you need to use its Python to get its special libraries, so use that.
-
pygobject 2.28.6 with this patch and this optional one.
-
py2cairo 1.10.0 — uses “waf” build tool that may require the futzing mentioned at the end of this thread
Obviously, somewhat different versions are probably OK, though too-new stuff probably targets Python 3 and GTK+ 3 and opens a huge can of worms if your code is targeting version 2 of each of those.
Building everything is tedious but not generally difficult, though there isn’t
much documentation about how to pass extra info to waf
if it can’t guess the
right flags for things.