[Pythonmac-SIG] Why is Framework build of Python needed

Ronald Oussoren ronaldoussoren at mac.com
Thu May 14 09:19:03 CEST 2009


On 14 May, 2009, at 1:03, Bill Janssen wrote:

> Christopher Barker <Chris.Barker at noaa.gov> wrote:
>
>>
>>> Brian Granger <ellisonbg.net at gmail.com> wrote:
>>
>>>> I seem to recall that a Framework build of Python is needed if you
>>>> want to do anything with the native Mac GUI.  Is my understanding
>>>> correct?
>>
>> Pretty much -- to access the Mac GUI, an app needs to be in a proper
>> Mac application bundle.
>
> But there's no pressing reason Python has to supply that bundle.  You
> could build your own app using PyObjC to access the Cocoa GUI, using
> Python without a Python app bundle.  The two things are logically
> separate, aren't they?  You can have a framework build of Python  
> without
> having a Python application bundle.
>
> I suspect that the default build of PyObjC assumes that Python is a
> framework build, too.  But I don't know if you could build a
> non-framework Python and non-framework PyObjC, and use those  
> together to
> write Python programs that could access Cocoa.  I suspect you could,  
> but
> I also suspect it would be a lot of work.

And more importantly: most other users use a framework, as well as all  
py2app and pyobjc developers. That means that you're more likely to  
run into problems using a non-framework installation of Python, and  
that you'll get less help when you do.

Ronald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2224 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20090514/80093fb4/attachment.bin>


More information about the Pythonmac-SIG mailing list