[Pyobjc-dev] 2.2.x / non-framework build update
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@co...> - 2002-09-24 14:30:43
|
I just did a bit of an experiment and was successfully able to run the TableModel example against Python 2.2.1 using the standard system supplied version of Python. I had to build the application wrapper by hand as the objc/buildtools.py script depends on functionality that is only a part of the Framework build of python. Digging deeply into said functionality, most of it is centric to supporting resource forks and legacy mac issues which are not relevant to Cocoa development. Everything else worked as expected. I am going to invest some time into putting together a template Py-Cocoa project that uses a standard distutils style build formula to build a working, standalone, Cocoa application without requiring anything but the pyobjc module and the standard Python 2.2 that ships with OS X. Everything is there... just a matter of putting the right bits in the right place. There are three primary challenges: - generating an appropriately configured plist. This is trivial, really. - putting something together that can be easily managed through project builder. I can't think of anything hard here. - building a tiny bootstrap binary that can be stuck in the .app wrapper and be used to bootstrap the python interpreter with the appropriate script & arguments within the app wrapper. This is actually pretty trivial, as well. So -- nothing left to do but toss some code at the problem. :-) b.bum |