Re: [Pyobjc-dev] Help getting Started with PyObjc2 and Leopard
Brought to you by:
ronaldoussoren
|
From: Bill B. <bb...@ma...> - 2007-11-29 17:26:42
|
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 |