Opened 8 years ago
Last modified 5 years ago
#3177 new enhancement
Automatically register addons in GUI
Reported by: | sbl | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.8.3 |
Component: | Addons | Version: | svn-trunk |
Keywords: | g.extension, Makefile | Cc: | |
CPU: | Unspecified | Platform: | All |
Description
To make Addons more visible it would be nice if they could be registered in the GUI at install (through g.extension or Makefile)
Related discussion on ML here: https://lists.osgeo.org/pipermail/grass-dev/2016-October/082644.html and here: https://lists.osgeo.org/pipermail/grass-dev/2016-October/082668.html
Change History (14)
comment:1 by , 7 years ago
Milestone: | 7.4.0 → 7.4.1 |
---|
follow-up: 3 comment:2 by , 7 years ago
Already done, Addons are visible in Modules tab (after restarting the GUI). Time to close this issue?
follow-up: 4 comment:3 by , 7 years ago
Replying to martinl:
Already done, Addons are visible in Modules tab (after restarting the GUI). Time to close this issue?
AFAIK only C addons are added to the Modules tab, but not python addons; behaviour seen in winGRASS.
comment:4 by , 7 years ago
Replying to hellik:
Replying to martinl:
Already done, Addons are visible in Modules tab (after restarting the GUI). Time to close this issue?
AFAIK only C addons are added to the Modules tab, but not python addons; behaviour seen in winGRASS.
I am not sure if there is a separate ticket for this, but I looked at the problem and I don't quite understand the logic behind it. Basically when scanning for available addons, the toolboxes run g.extension -ag and look if "executable" exists. For Python scripts it's not there:
grass.read_command('g.extension', quiet=True, flags='ag') name=r.lake.series description=Fills lake at given point(s) to given levels. keywords=raster,hydrology,hazard,flood executables= name=r.stream.distance description=Calculates distance to and elevation above streams and outlet. The module can work in stream mode where target are streams and outlets mode where targets are outlets. keywords=raster,hydrology,stream network,watercourse distance executables=r.stream.distance name=i.superpixels.slic description=Perform image segmentation using the SLIC segmentation method. keywords=imagery,segmentation,superpixels,SLIC executables=i.superpixels.slic
So the question is why the executable is not there, which is in g.extension: https://trac.osgeo.org/grass/browser/grass/trunk/scripts/g.extension/g.extension.py#L413
I don't understand the condition there to exclude scripts folder on windows.
comment:7 by , 6 years ago
Milestone: | 7.4.1 → 7.4.2 |
---|
comment:8 by , 6 years ago
Can somebody test this on MS Win? See if you have in Modules tab there some Python module from Addons for example i.superpixels.slic.
comment:9 by , 6 years ago
Milestone: | 7.4.2 → 7.6.0 |
---|
All enhancement tickets should be assigned to 7.6 milestone.
comment:12 by , 6 years ago
Milestone: | 7.6.2 → 7.8.0 |
---|---|
Priority: | minor → normal |
Version: | unspecified → svn-trunk |
A (un?)related bug is that metamodules like r.modis, i.sentinel are not listed properly in modules.xml cause they do not appear with description and keywords in the xml file but are simply listed in the <binary> section.
This prohibits the addon manual search, see #3583
comment:14 by , 5 years ago
Milestone: | → 7.8.3 |
---|
Ticket retargeted after milestone closed