[wxPython-users] py2app and wx

Christopher Barker Chris.Barker at noaa.gov
Thu Dec 13 09:21:00 PST 2007


Cody Precord wrote:
> On Dec 13, 2007, at 7:44 AM, James Bigler wrote:

>> I notice that you aren't including wx in your package.

> You shouldn't have to explicitly include wx in the setup.py file if your 
> program has an 'import wx' in it somewhere then it should be 
> automatically picked up

Exactly. That's the whole point of py2app -- and it does a very good job 
of it. With complex packages, it can make mistakes, but the common ones 
have "recipes" built in to py2app -- I'm pretty sure wx is one of the 
standard recipes, so it does "just work".

As is often the case with python -- if it doesn't work, you're probably 
trying too hard!

The example I gave you does create a completely stand-alone application, 
it's been tested on PPC and Intel machines with nothing extra installed.

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list