Standalone Win32 wxPython apps?

Peter Hansen peter at engcorp.com
Sat Mar 9 23:15:15 EST 2002


Grant Edwards wrote:
> 
> I'm considering writing a wxWindows app for Win32.  The only
> way I'm willing to do this is by doing all of the development
> under Unix, and then grit my teeth while I package up the final
> product for Win32.

Please tell us you are willing to bend a little and at least
*test* under Win32 before you deliver it.  Evidence from the
Era of Java shows that nothing is write-once-run-anywhere...

> Optimally, it would be a single "exe" file that doesn't require
> any installation procedure.  

That's too much to ask for even a native Windows app in most
cases these days.

> If that's not possible, it would be permissible to use a 
> typical "isntall-wizard" type installation ...

Great, you have several options available.

> It looks like Gordon McMillan's installer might fit the bill.

That's probably one.  I haven't used it. 

> Anybody care to share any experiences distributing wxWindows
> apps for Win32?

py2exe will do everything you need except the installer part
of the puzzle.  But there are many installers available, 
including freebie versions of some of the better ones.  Use
py2exe and you'll get a directory with the Python DLL, the
wxPython DLL, your EXE, and a few other DLLs as needed
(e.g. the native regular expression stuff if you use it).
Package and ship, easy as pie.  (I've used PowerArc with 
its option to package into a self-extracting ZIP as a
poor-man's version of an installer and it worked nicely.)

-Peter



More information about the Python-list mailing list