Re: [Pyobjc-dev] Patch for py2app -A on 64-bit Snow Leopard (was Re: Fwd: PyObjC and NSOpenGLView)
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2010-03-10 20:22:55
|
On 10 Mar, 2010, at 14:26, James R Eagan wrote: > > Le 5 janv. 2010 à 11:43, Ronald Oussoren a écrit : > >> "py2app -A" doesn't work at the moment on SL, IIRC someone has sent me a fix for that. >> >> You should be able to run the example using 'python setup.py py2app' without the -A. > > I know I've submitted other py2app-related patches before, but mine didn't fix a bug related to alias builds on 64-bit Snow Leopard systems (I'm still in 32-bit land, so I never noticed before). (You might have also been talking someone else, but Carly Simon did once write a song about me.) > > For some reason, Carbon.File.Alias on 64-bit only has the FS* functions, but not their aliases with the FS prefix removed. This is probably a bug in Python-mac rather than in py2app or pyobjc. But here's a workaround for it in py2app, made off of PyObjC trunk/py2app : Good catch. I've applied your patch to the repository (r89). someAlias.ResolveAlias and someAlias.FSResolveAlias map onto C functions with the same name, and the ones without 'FS' prefix aren't available in 64-bit code (not just in Python, but in C as well). Have I mentioned yet that the 'Carbon' wrappers in the stdlib suck? <0.5 wink> Ronald |