[QGIS-Developer] install plugin from github

Jacky Volpes jacky.volpes at oslandia.com
Tue Mar 21 07:14:00 PDT 2023


Hi,

I recommend that you clone the repository somewhere else on your 
computer, and add the path in QGIS settings, in the System > Environment 
variable section, in QGIS_PLUGINPATH (see capture below).

This way you will always be able to put the correct path to the plugin.

Because here for instance with this plugin 
<https://github.com/tarot231/qgis-project-packager-plugin>, if you want 
your method to work, you should put "ProjectPackager" directory in 
C:\...AppData...\python\plugins\, which is one level inside the cloned repo.
(i.e. the plugin directory is the directory where the metadata.txt file 
is, and not the whole directory from the repo).

I also recommend the use of the plugin "Plugin Reloader", so that you 
can reload your python files without quiting/lauching QGIS each time (or 
deactivating/reactivating the plugin).




Regards,

Jacky Volpes
Oslandia



Le 21/03/2023 à 14:57, Hugh Kelley via QGIS-Developer a écrit :
> Hi,
>
> could anyone share instructions for installing a plugin from the 
> source code on github instead of the plugin manager and subsequently 
> making changes and running the plugin to see the difference?
>
> I've tried cloning the repo to:
> C:\Users\hkelley\AppData\Roaming\QGIS\QGIS3\profiles\project-packager_dev\python\plugins\qgis-project-packager-plugin
> and moved some things around to copy the set up of other installed 
> plugins.
>
> The plugin appears in the "installed" list but doesn't work.
>
> Maybe I need to compile it? but I would have thought for a python only 
> plugin that wouldn't be necessary.
>
> I've also separately followed the instructions for building a plugin 
> from scratch using plug in builder and plugin reloader. It's not clear 
> to me how I would apply those steps to working with an existing plugin.
>
> thanks for any guidance.
>
> Hugh
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info:https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Jacky Volpes

Ingénieur SIG - Oslandia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20230321/10db0eb6/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: H08z0zrkXD60m0bD.png
Type: image/png
Size: 18288 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20230321/10db0eb6/attachment-0001.png>


More information about the QGIS-Developer mailing list