View Single Post
Old 10-10-2020, 08:23 AM   #1
t-8ch
Junior Member
t-8ch began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2013
Device: none
Systemwide installation of plugins / Discovery of installed plugins via pkg_resources

Hi,

I would like to develop a mechanism for Calibre to discover and use systemwide installed plugins in addition to builtin plugins and plugins loaded from the users settings.

This would allow users and Linux distributions to package third-party plugins the same way as the rest of the system, including custom distribution or pip package repositories.

My primary idea is to use the existing setuptools discovery mechanism for plugins: pkg_resource entrypoints.
This is the standard Python way, does not require any dependencies and should always work.
The only disadvantage I can see is that existing plugins probably don't have setuptools metadata. But that should be easy to add, first downstream by people packaging the plugins and later directly inside the plugins repository.

I am willing to implement this feature and see it through, but first I'd like to get feedback from the Calibre team whether this has a chance of being accepted.

Thanks
t-8ch is offline   Reply With Quote