Thursday, March 13, 2008

how I use py2exe

Just documenting this for myself to use later.

I have activestate activepython 2.5.1 installed. Copy the to the folder with the .py file. The contents of the are simply:

1 from distutils.core import setup
2 import py2exe
4 setup(console=[''])

Run "python py2exe". Two folders will be created:
1. Build
2. dist

dist should have your .exe and all the required dlls.

Update: Forgot to mention that this is after you download and install py2exe.