Internal Server prerequistes and the new Addon Manager

The plugin data optionally contains the following fields:

  1. depends_on This is a list a Gramps plugins that the plugin depends on. They will be installed along with the plugin.

  2. requires_mod This is a list of external python modules required by the plugin. By setting a configuration option, Gramps will automatically attempt to install them using PyPI.

  3. requires_exe This is a list of external executables required by the plugin. They cannot be automatically installed, but Gramps can display them in a list of requirements.

  4. requires_gi This is a list of GObject introspection modules required by the plugin together with the required versions. Like the executables, they cannot be automatically downloaded.

The requires_mod, requires_mod and requires_mod fields are new in v5.2. I have already updated our third-party repository accordingly.

The advantages of the new approach is that requirements can be specified by the addon developer and used for automatically loading modules and for reporting missing prerequisites.

4 Likes