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

Bill Janssen janssen at parc.com
Thu May 14 01:03:16 CEST 2009


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.

Bill


More information about the Pythonmac-SIG mailing list