Re: [Pyobjc-dev] Help getting Started with PyObjc2 and Leopard
Brought to you by:
ronaldoussoren
|
From: Barry W. <bar...@gm...> - 2007-11-30 01:14:35
|
Right, so if I want to, for example, install the latest numpy, I have to use MacPython. That's how I understood things, but several statements to the effect of "the python that ships with 10.5 is all you need" seemed to contradict that. On a related note, I've placed the 10.5.sdk build of MacPython that I made at http://rieke-server.physiol.washington.edu/~barry/python/python-2.5.1-macosx2007-11-26.dmg It can correctly build pyobjc2 (tests pass) on Leopard. For those of you in a similar position (wanting pyobjc2 but needing newer numpy etc.) give it a try. If this is a useful community resource, I'll work to put it in a more permanent location and/or do more regular builds (let me know if you find it useful). I haven't tested it except on our machines at work, which all have a similar configuration, so YMMV. barry On 11/29/07, Bill Bumgarner <bb...@ma...> wrote: > On Nov 29, 2007, at 8:35 AM, Barry Wark wrote: > > So is it the official stand now that users should install new/updated > > packages in the system python? My understanding (well, from Tiger > > days) was that the system's python should not be modified since system > > services depend on it. This seems to be the unstated rule with > > Leopard, since the system python puts its own setuptools, numpy etc. > > packages in sys.path before /Library/Python/2.5/site-packages. So, if > > we don't install a framework build of Python, it looks like we either > > have to interfere with system dependencies (such as numpy, setuptools, > > pyobjc2?, etc.) or be stuck with the version that shipped in Leopard > > (numpy 1.0.4 is now available, for example). > > > > Unfortunately, pyobjc2 won't work with the pyhton.org framework build > > because the framework build was built using the 10.4u.sdk (see a > > previous post by me on this subject). However, it's not hard to build > > a framework build from the python.org source (there's a script that > > does just that in the source tree). Once python is built with the > > 10.5.sdk, pyobjc2 compiles and works just fine (we've been using it in > > production for a few days already). I'm not sure how to compile in > > dtrace support, but if you can live without that, everything else > > appears to work. Does anyone know how to add dtrace support to Python > > or does it require Apple's patches to the interpreter? > > > > Perhaps someone from Apple would be willing to comment... > > If you want to install a custom built version of Python.framework, > then you will also need to build and install PyObjC. > > In general, do not overwrite system files. Not ever. Keep your > custom stuff separated from system stuff. > > b.bum > > |