Re: [Pyobjc-dev] PyObjC and OSX versions
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2010-04-04 09:51:29
|
On 3 Apr, 2010, at 15:41, Aahz wrote: > On Thu, Apr 01, 2010, Ronald Oussoren wrote: >> >> W.r.t. 10.4 support in general: I'd say that it is more worthwhile to >> work on porting PyObjC 2.2 to 10.4 than to try to create a workflow >> using both PyObjC 1.4 and 2.2. For the most part this entails adding >> #ifdef guards in the C modules to ensure that the wrappers for APIs >> that aren't available on 10.4 get excluded from the build when >> building using the 10.4 SDK. > > That still means it's going to be tricky writing an app that uses > FSEvents on 10.5+ that works without FSEvents on 10.4 -- instead of > maintaining separate installs of PyObjC 1.4 and 2.2, I'll need to have > separate installs of 2.2 and 2.2, and keeping track of which is which > will be more difficult. > > Perhaps I'm missing something? Would it be possible to build PyObjC 2.2 > on 10.5 in a way that works on 10.4, just with FSEvents disabled? That's pretty easy to do, although I don't recall if I have prepared the code for it. This basicly requires weak-linking to any symbols that aren't available on 10.4 and dealing with the NULL pointers that you might get because of that. An example of this is Modules/posixmodule.c in the python tree. That uses weaklinking to ensure that os.lchown (and several other symbols) are present on OSX releases that have it while still working on older OSX releases. > > There's a reasonably good chance we're going to switch to kauth due to > FSEvents' limitations, which would sidestep the issue another way. Does > anyone have any experience using kauth? What's kauth? > > Before someone asks, kqueue is not sufficient for our needs (monitoring > directory systems that might have a million files), and pnotify has > languished for so long without update that I'm not willing to take a > chance with it. I think that pretty much exhausts the available options. Ronald > -- > Aahz (aa...@py...) <*> http://www.pythoncraft.com/ > > Why is this newsgroup different from all other newsgroups? > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |