Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PyGTK All-in-one installer, stable releases are on:
Python Shell

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
etc
var/overlays/2.22.0.0
.gitignore
AUTHORS
COPYING
README.rst
TODO

README.rst

pygtk-installer

The pygtk-installer project provides:

  • build_bindings.sh: a tool that builds windows installer packages (both .exe and .msi) for pycairo, pygobject, pygtk, pygoocanvas, pygtksourceview and pyrsvg.
  • build_installer.py: a tool that generates an all-in-one installer bundling the separate .msi installers created by build_bindings.sh and the gtk+ runtime packages from ftp.gnome.org/pub/GNOME/binaries/win32/.

WARNING

The all-in-one installer should be considered as a proof of concept. Please do not use it on productions systems just yet.

If you decide to give it a test anyway:

  1. Make absolutely sure the separate pycairo, pygtk, pygobject, etc packages are uninstalled. The all-in-one installer does not yet check for their presence and will happily overwrite them.

  2. You no longer need to fiddle with the PATH environment variable. The pygtk version that's installed with the all-in-one installer should take care of loading the included gtk+ runtime on PATH when you import pygtk; pygtk.require('2.0'). As a consequence simply importing gtk, gobject, etc might not work without the .require() call. The .require() call is typically done only once in a startup script somewhere.

  3. Why did you say "might not work" above? Ah, good question. If you've got another gtk+ runtime on your PATH environment variable - for example you installed Dia, MonoDevelop (gtk#), etc. - the PyGTK bindings might use one of those runtime libraries. In that case the behavior of the PyGTK bindings is unspecified (it might crash, error out, etc.).

  4. If you want to test newer snapshots of the all-in-one installer when they get available, you'll first need to uninstall the previous one, either from the "add/remove program" control panel applet, or by executing the old version's .msi file and choosing the "Remove" option (just to be on the safe side)...

  5. If it doesn't work, consider executing the following and study the output:

    $ python -v
    >>> import pygtk
    >>> pygtk.require('2.0)
    
Something went wrong with that request. Please try again.