[Pythonmac-SIG] py2app, iGraph and icns

Christopher Barker Chris.Barker at noaa.gov
Wed Jul 29 21:39:20 CEST 2009


Bernie Hogan wrote:
> I have a problem that I'm not sure if anyone else has encountered. I'm
> trying to make an application that is in many respects a 'skin' over a
> specific data object (an igraph network object). The iGraph package in
> python is great for analysis, but it is really a set of c++ objects
> that have python bindings. So, it completely fails in py2app.

that shouldn't be the case -- lots of python modules are C++ module with 
python bindings (that's what wxPython is, for instance) -- what exactly 
are you doing, and how is it failing?

> Does anyone know a way for me to get the py2app code to naively just
> include the iGraph package and talk to it such that I don't need to
> know how it is implemented?

I'm not sure what you mean, but if py2app fails to include something 
your app needs, you can always just coy it into the bundle in your 
setup.py script.

> In addition to ease-of-distribution from py2app, I also want to use a
> custom icon. wxPython doesn't seem to support .icns the way that
> py2app does.

not quite -- if you give your .icns to py2app it will mostly work, but 
you may need to make the wxPython call to add the icon to your app, and 
it may need to be in another format. But it can be done.

-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 Pythonmac-SIG mailing list