[Distutils] Improving distutils' script and GUI app handling

Ronald Oussoren ronaldoussoren at mac.com
Sun Sep 18 17:36:24 CEST 2005


On 15-sep-2005, at 20:10, Robert Kern wrote:

> Kevin Dangoor wrote:
>
>> On 9/15/05, Phillip J. Eby <pje at telecommunity.com> wrote:
>>
>>
>>> As for Mac OS, I have almost no experience with it, so I'm not  
>>> sure what
>>> GUI applications there need.  Does everything need py2app?  If  
>>> you have a
>>> wx-based app, would you just make a #! script?  Bob Ippolito  
>>> previously
>>> mentioned that you don't "install" applications there, that  
>>> people just
>>> drag applications wherever they want them rather than using  
>>> shortcuts, so
>>> at least that part isn't a problem.  :)
>>>
>>
>> GUI apps on the Mac need py2app.
>>
>
> It depends. wx-based programs don't have a technical need to be in a
> .app bundle. They will run fine from the command line. Now, the *user*
> might want it packaged in a .app bundle, and we as developers might  
> need
> to respond to that desire.

IIRC you need to use bundles if you want full control over the menu  
contents. But I haven't used wx on the mac for quite a while.

>
> I think that PyObjC apps might actually need to be in a .app bundle to
> work reliably, though.

PyObjC apps do need to be in a .app bundle, that's needed to find  
resources, such as NIB files, using the Cocoa API's.

>
> I have a feeling that there isn't a pressing need to be able to  
> install
> .app bundles from easy_install. If the package maintainer is going  
> to go
> to the trouble of writing a setup.py that can be used with py2app,  
> he'll
> almost certainly actually build the .app binary and distribute it.  
> Since
> they're standalone, they don't really interact with the other  
> installed
> packages.

Think big :-). It would be nice if we'd end up with a generic method  
for describing how to build standalone apps that py2app and py2exe  
could hook into. You currently have to write slightly different code  
on windows and osx to get a standalone app.

Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2105 bytes
Desc: not available
Url : http://mail.python.org/pipermail/distutils-sig/attachments/20050918/3e49f671/smime.bin


More information about the Distutils-SIG mailing list