Skip to content

How do I specify dependencies for plugins? #4569

Answered by psifertex
psifertex asked this question in API
Discussion options

You must be logged in to vote

First, if you're writing python, you might have to rely on some trickery. Python plugins are loaded en-masse by the Python Plugin Loader and you probably want to set up the imports such that whichever plugin loads first, it can trigger the other plugin to be loaded before resuming the rest of its loading.

Second, if you're writing native (C++, or Rust) plugins, you'll want to use the AddRequiredPluginDependency or AddOptionalPluginDependency APIs (or their rust equivalents).

Check out the example under Project Setup in the developer documentation for instance.

Right now there's no way (and not expected to be one in the foreseeable future) to specify dependencies between Python and Native …

Replies: 1 comment

Comment options

psifertex
Aug 18, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by psifertex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant