Version-filedescription=The Project Titleįrom a command prompt in your project_name folder, run: Version-companyname=version-legalcopyright=2003 Fingal McFungal core import setup import py2exe import glob setup ( name = "pycadia", scripts =, data_files = )Ģ) Build a setup.cfg file. Here is one I used for The Pycadia Project:įrom distutils. require ( '2.0' ) import gtk import gobject assert gtk. environ += " lib " else : #not win32, ensure version 2.0 of pygtk is imported platform = 'win32' : #win32 platform, add the "lib" folder to the system path The code where gtk and pygtk get imported into your project should look something
Install py2exe windows how to install#
c:\Program Files\Common Files\GTK\2.0\libģ) Install the latest version of pygtk for windows.Ħ) A useful extra is ISTool which can edit c:\Program Files\Common Files\GTK\2.0\binĮ.g.
To add the install location to your PATH environment variable.Ģ) Install the latest version of GTK for windows.Īdd the locations of the bin and lib folders to your PATH environment variable.Į.g.
Here's a How-To on generating stand-alone executables forĪny comments, please email me: py2exe at anti-particle dot comġ) Install the latest version of python. How-to build standalone windows executables for GTK+ 2.2 or 2.4 using py2exe 0.5.x How-to build standalone windows executables for GTK+2.0 using py2exe 0.4.x