[Pythonmac-SIG] Building plugins with py2app

Dethe Elza delza at livingcode.org
Sun Oct 15 22:55:36 CEST 2006


On 15-Oct-06, at 1:07 PM, Ronald Oussoren wrote:

> Ok, nice to hear that.

PyObjC has changed my life for the better, and I'm still just  
scratching the surface.  The hard part is that I've become dependent  
on it, so when something doesn't work, everything I'm doing comes to  
a screeching halt.  I can't tell you how much I appreciate your quick  
responses in those cases.

> If you have two python plugins for the same program they should at  
> the very least use the same version of python, using different  
> versions of python may or may not work.

OK, I generally rebuild my plugins with the latest versions of  
everything anyway, but good to know.

> I'd have to study the plugin main code to be absolutely sure, but  
> AFAIK if plugins A and B both depend on package C they should  
> depend on the same version of C because at runtime they will both  
> use the version that's included in whichever of the plugins was  
> loaded first.

That shouldn't be a problem.

> If you can arrange for one of the plugins to be loaded first it  
> would be useful to have that plugin include the Python framework  
> and large extensions (like PyObjC). That way other plugins can stay  
> very small and you don't get confusion on what gets loaded.

Have you seen SIMBL?  It's an input manager that loads plugins, so  
you can load arbitrary code into an existing application (kind of a  
gross hack, I know, but terribly useful when code injection wasn't  
working on Intel).  The neat thing about it is how it is configured  
to only load plugins for certain applications, and only for specified  
versions of those applications.  Having a meta-plugin for Python that  
did something similar would be cool.  I think there is something like  
that for Quicksilver, but it would be nice to generalize for other  
plugins.

Someday, in all my copious free time, I may even attempt it myself.  %-)

> Ronald

Thanks again!

--Dethe

"the city carries such a cargo of pathos and longing
  that daily life there vaccinates us against revelation"
  -- Pain Not Bread, The Rise and Fall of Human Breath



More information about the Pythonmac-SIG mailing list