Opened 8 years ago

Last modified 5 years ago

#3177 new enhancement

Automatically register addons in GUI

Reported by: sbl Owned by: grass-dev@…
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 neteler, 7 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:2 by martinl, 7 years ago

Already done, Addons are visible in Modules tab (after restarting the GUI). Time to close this issue?

in reply to:  2 ; comment:3 by hellik, 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.

in reply to:  3 comment:4 by annakrat, 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:5 by annakrat, 7 years ago

In 72658:

wxGUI: fix problem with Python addons not showing up on Windows, see #3177

comment:6 by annakrat, 7 years ago

In 72659:

wxGUI: fix problem with Python addons not showing up on Windows, see #3177 (merge from trunk, r72658)

comment:7 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:8 by wenzeslaus, 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 martinl, 6 years ago

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:10 by martinl, 6 years ago

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:11 by martinl, 6 years ago

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

comment:12 by neteler, 6 years ago

Milestone: 7.6.27.8.0
Priority: minornormal
Version: unspecifiedsvn-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:13 by martinl, 6 years ago

Milestone: 7.8.0

Remove Milestone from Addons bugreports.

comment:14 by neteler, 5 years ago

Milestone: 7.8.3
Note: See TracTickets for help on using tickets.