[Feat] g.extension: enable installation of (python) addons locally on Windows #4745
Labels
backport to 8.4
PR needs to be backported to release branch 8.4
enhancement
New feature or request
windows
Microsoft Windows specific
Milestone
Is your feature request related to a problem? Please describe.
The g.extension module does offer the option to provide an alternative ULR to an addon repository. However, this does not work for GRASS GIS on Windows. This makes sharing quick updates (e.g., bug fixes) or addons outside the official repository with Window users difficult.
Describe the solution you'd like
Make it possible to install addons locally, or make it possible to point to another server than the default http://wingrass.fsv.cvut.cz/. I.a.w., make the URL parameter also work for Window users.
I tested this by replacing in the g.extension code the http://wingrass.fsv.cvut.cz/ with a URL to a site where I shared some addons, and using a path to a local folder with (Python) addons properly packaged in a zip file. In both cases, I could install the addon from that URL or folder without problem.
Describe alternatives you've considered
url
parameter, the base_url variable (line 1601) will be constructed using that URL instead of the default one. That probably needs an extra note in the help file about the requirements of how the addon is packaged.url4w
) which does the same, but is specifically meant for Window users. A possible advantage is that this makes it easier to explain in the help file.Additional context
As use cases:
The text was updated successfully, but these errors were encountered: