[Distutils] Adding entry points into Distutils ?
ziade.tarek at gmail.com
Tue May 5 17:09:39 CEST 2009
2009/5/5 Sebastien Binet <seb.binet at gmail.com>:
>> That allows people to create their own plugins in separate packages,
>> and use them by tweaking the configuration
>> file. The only think that entry point provided here is an automatic
>> registration at installation time of the "rss" plugins,
>> so my Atomisatior application can discover then load it at run time.
>> So in your way of seeing thing, you'd rather see this registration
>> mechanism at the application level,
>> but the you need to provide specific installation instructions for
>> people that want to add plugins.
>> e.g. "put your package in this /plugins directory" for example.
> wouldn't this be tackled by providing a plugin-discoverer plugin ?
> kind of like the new import hooks of pep-302  where you have module
> finders separated from module loaders, or like this library I have been using
> in my field 
That would be better to use these hooks rather than __import__ I believe,
but I don't think it changes the problem (eg locate the plugin)
More information about the Distutils-SIG