[Pythonmac-SIG] py2app and plist entries

Robin Dunn robin at alldunn.com
Fri Oct 31 20:41:47 CET 2008


Joe Strout wrote:
> I tried py2app on my wxPython for the first time today, expecting it to 
> be a long and painful chore -- and was pleasantly surprised that it 
> worked right off the bat.
> 
> Now I'm wondering a bit about options, mainly for things that end up in 
> the Info.plist file.  I do see that I could build my own Info.plist and 
> specify it with the --plist option, but I really don't believe that I 
> know better than it does what should be in that file; I just want to 
> tweak a couple of things, like the bundle identifier.  I see how to set 
> the icon file, but no way to set the bundle identifier, version strings, 
> etc.  Is there any way to do so?
> 
> Also, the py2app help says that I can give --plist a dict.  Anybody have 
> an example of that?  And do the options I give it that way become the 
> entire Info.plist, or do they just override the corresponding entries of 
> the autogenerated one?
> 
> Finally, it also says --plist can be a "plistlib.Plist".  What's that?

You've been working on Editra so you can look in its setup.py for an 
example.  Basically you create a dictionary and pass it to setup() as 
one component of the options dictionary parameter.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!



More information about the Pythonmac-SIG mailing list