Re: [Pyobjc-dev] Mixing py2app with Python C interface plugins
Brought to you by:
ronaldoussoren
From: Ian B. <ia...@on...> - 2010-01-26 16:57:24
|
On Jan 26, 2010, at 2:18 AM, Ronald Oussoren wrote: > You cannot link to multiple python interpreters in the same proces when you also use PyObjC due to conflicting symbols. Even without PyObjC using multiple Python versions at the same time is hairy and only works on OSX due to two-level namespaces. > > The only workaround for this is to use the same version of Python in your plugin and the py2app one. Is there a way to specify which version of Python to use? Ideally, I'd like to just make use of the Python interpreter setup by the py2app plugin if it exists, and otherwise setup a new environment by hand, but I'm not sure where in the Python API to look for this kind of functionality. I'm not very familiar with the C interface to Python yet. > P.S. It is probably possible to work around this using preprocessor trickery in the PyObjC sources to ensure that all used symbols are version specific but I'm not interested in working on that any time soon (but would be willing to review and apply patches). I'm not really interested in you working on that, either. :-) Multiple plugin developers using different methods to approach PyObjC seems like something that isn't likely to come up much. Ian |