[Pythonmac-SIG] Building plugins with py2app

Dethe Elza delza at livingcode.org
Sun Oct 15 20:23:03 CEST 2006


On 15-Oct-06, at 9:26 AM, Ronald Oussoren wrote:

> I've done a clean install of python, py2app, PyObjC and related  
> packages and can now reproduce your problem.

Thanks so much!

> I hope I've also fixed the problem in revision 47 of py2app.  It  
> turns out the app stub and bundle stub use a slightly different way  
> to setup the python environment, which means the right python path  
> must be set in the Info.plist for plugins but not for applications.

That did it, it's working beautifully now.

> Setting up the right environment for plugins is also very hard, if  
> not impossible to do completely correct: cpython just isn't  
> designed for having several completely seperate interpreters in one  
> application (and no, Py_NewInterpreter/Py_EndInterpreter don't  
> count). Different plugin bundles with py2app will share part of the  
> environment, such as having a shared sys.path.

So does that mean that I shouldn't run two Python plugins in the same  
program, or that I need to be careful that they have the same  
dependencies, or that the first contains all the dependencies of  
subsequent plugins, or what?  I'm just trying to understand here.

> Ronald

Thanks again for taking the time to fix this.

--Dethe

"Computers are beyond dumb, they're mind-numbingly stupid. They're  
hostile, rigid, capricious, and unforgiving. They're impossibly  
demanding and they never learn anything." -- John R. Levine




More information about the Pythonmac-SIG mailing list