Opened 3 years ago

Last modified 4 months ago

#3177 new enhancement

Automatically register addons in GUI

Reported by: sbl Owned by: grass-dev@…
Priority: normal Milestone:
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 (13)

comment:1 Changed 19 months ago by neteler

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:2 Changed 18 months ago by martinl

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

comment:3 in reply to:  2 ; Changed 18 months ago by 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.

comment:4 in reply to:  3 Changed 18 months ago by annakrat

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 Changed 16 months ago by annakrat

In 72658:

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

comment:6 Changed 16 months ago by annakrat

In 72659:

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

comment:7 Changed 15 months ago by neteler

Milestone: 7.4.17.4.2

comment:8 Changed 15 months ago by wenzeslaus

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 Changed 11 months ago by martinl

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:10 Changed 7 months ago by martinl

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:11 Changed 5 months ago by martinl

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

comment:12 Changed 4 months ago by neteler

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 Changed 4 months ago by martinl

Milestone: 7.8.0

Remove Milestone from Addons bugreports.

Note: See TracTickets for help on using tickets.