[pygtk] Packaging PyGTK applications for Windows

Chris Lambacher chris at kateandchris.net
Thu Mar 23 05:56:53 WST 2006


On Fri, Mar 17, 2006 at 02:40:35PM +1100, John Pye wrote:
> I think that PyGTK's windows installer should include the GTK+
> libraries, somehow.
I think that is probably going to be problematic.

> 
> If anyone has a good example of how they go about this for their
> particular application, (py2exe, etc?) I'd really like to hear about it.

We ship a (closed source) py2exe'd app and include the GTK library in the
application's directory.  Then we use InnoSetup as the installer app.  When
the application is run we detect that we are "frozen" and set some relevant
environment variables (PATH, GTK_BASEPATH).  We probably ship more of GTK than
we actually need.  The part that seems to take the most space (asside from the
.dlls themselves) is the .mo translation files.

This approach was based on information I got from the PyGTK faq and some
Google searches. 

-Chris


More information about the pygtk mailing list