[Qgis-developer] Plugin Dependencies

Victor Olaya volayaf at gmail.com
Wed Oct 7 08:50:51 PDT 2015

At the moment, you have to ship them with your plugin, in the plugin
zip file. If the lib uses native code, you will need to include
binaries for all OSs that you want to support, and the corresponding
mechanism to pick one or the other.

As an example, you can see how it is done in this plugin


Dependencies are stored in a folder called "ext-libs", which is added
to the python path by the plugin

Notice that that folder is not in the repo, there is a paver task to
fetch the dependencies from PyPi

Notice also that QGIS has its folder with python libs


Make sure that the libs you require are not already in there,

Hope this  helps

2015-10-07 17:33 GMT+02:00 Guido Barbaglia <guido.barbaglia at gmail.com>:
> Dear all,
>    I'm writing my first plugin for QGIS, which is basically a wrapper for
> some Python libraries I developed some times ago and that are available on
> the PyPi repository. How can I include these dependencies in my plugin? How
> can I configure the plugin so that it installs the dependencies when the
> user download the plugin itself?
> Many thanks for your help, best
> Guido
> --
> Guido Barbaglia
> http://geobricks.org/
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

More information about the Qgis-developer mailing list