Opened 2 years ago

Last modified 8 weeks ago

#3177 new enhancement

Automatically register addons in GUI

Reported by: sbl Owned by: grass-dev@…
Priority: minor Milestone: 7.6.1
Component: Addons Version: unspecified
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 (10)

comment:1 Changed 14 months ago by neteler

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:2 Changed 13 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 13 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 13 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 11 months ago by annakrat

In 72658:

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

comment:6 Changed 11 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 9 months ago by neteler

Milestone: 7.4.17.4.2

comment:8 Changed 9 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 6 months ago by martinl

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:10 Changed 8 weeks ago by martinl

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.