README.rst 1001 B

123456789101112131415161718192021
  1. This is an example of building a Windows installer for a pygtk application. This
  2. is a bit more complex than the other examples, because the GTK runtime needs to
  3. be set up. This needs two things:
  4. 1. The pieces of the GTK runtime and its Python bindings. The script ``grab_files.sh``
  5. downloads these, unpacks them, trims out unnecessary pieces, and places them
  6. where pynsist will find them.
  7. 2. The ``PATH`` environment variable must be modified before we try to import
  8. the Python GTK bindings. This is done by the ``extra_preamble`` field in
  9. ``installer.cfg``.
  10. I referred to the following sources of information to work this out:
  11. Bundling pygtk using py2exe:
  12. http://faq.pygtk.org/index.py?file=faq21.005.htp&req=show
  13. https://web.archive.org/web/20060208162511/http://www.anti-particle.com/py2exe-0.5.shtml
  14. Installing pygtk & deps: http://www.pygtk.org/downloads.html
  15. (inc links for pygtk, pycairo and pygobject installers)
  16. GTK bundles for Windows: http://www.gtk.org/download/win32.php