FAQ Index - Search - Recent Changes - Everything - Add entry

<< Previous Entry | FAQ Entry 1.14 | Next Entry >>

1.14. How do I compile pygtk or gnome-python from SVN?

You need the GTK+ 2.x libraries, as you'd expect (see FAQ 21.2). There are three packages you want to build:

You should run

 ./autogen.sh
 make
 make install
in each of these, in that order. If you want to build from SVN, you might want to look at a build script. James recommends jhbuild (also in GNOME svn).

If you want to install them to a separate prefix, eg if you don't have write access to /usr/local, use --prefix as an argument to autogen.sh or configure, eg:

  ./configure --prefix /home/user/prefix
And then, don't forget to set PYTHONPATH before running the program, eg:

  export PYTHONPATH=/home/user/prefix/lib/python2.3/site-packages
Then you can finally run your program.

For additional information on how to use configure, see the INSTALL file which is included in the source tarball or subversion.

PyGTK FAQ Wizard | PyGTK Homepage | Feedback to faq at pygtk.org