Re: [Pyobjc-dev] A couple PyObjC questions
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2010-01-20 21:51:44
|
On 20 Jan, 2010, at 16:33, Mani Ghasemlou wrote: > Hi everyone, > > I have a couple hopefully simple questions about PyObjC, and would highly appreciate your responses! > > - If I build a (standard Xcode template) PyObjC app on a Leopard 10.5 machine (with all the system updates), would this app use the version of PyObjC installed on the build system (2.0), or would it use the version of PyObjC on the system it is being run on? i.e. PyObjC 2.2 on SL. It would use the system version of PyObjC. > > - Is it safe to upgrade to PyObjC 2.2 on my Leopard machine (I'd like to do this to see if it resolves some serious memory leaks in my app)? If so, what is the correct way to do so? I have tried 'sudo easy_install pyobjc==2.2', to no avail, it keeps telling me to upgrade my version of setuptools to 0.6c7, when in fact I have 0.6c11 installed, and running easy_install -U setuptools doesn't resolve the issue (this is probably a bug). I advise against replacing PyObjC in the system install of Python because 2.2 isn't 100% compatible with the version in Leopard and you might therefore break parts of your system by replacing PyObjC. What you can do is install Python from python.org website and then install PyObjC into that. The xcode template should then link to that copy of python. But be warned that the app bundle than requires that your users also install Python.org's python (that is, unless you start using py2app). Ronald |