[GRASS-dev] g.extension.add available to install GRASS Addons SVN modules (GEM replacement)

Markus Neteler neteler at osgeo.org
Sun Jul 5 14:03:34 EDT 2009


On Sun, Jul 5, 2009 at 7:55 PM, Martin Landa<landa.martin at gmail.com> wrote:
> Hi,
>
> 2009/7/5 Markus Neteler <neteler at osgeo.org>:
>
> [...]
>
>>> I would vote for moving this module to trunk and
>>> integrate it into wxGUI. Probably it's less robust solution comparing
>>> to GEM, anyway it's easier to maintain.
>
> then I would suggest to rename module to 'g.extension' for
> adding/removing/updating selected extension. Make sense to you?

Sure!

BTW: I tried the python version but got two errors:


make MODULE_TOPDIR=/home/neteler/grass65
make: *** No rule to make target `g.extension.add', needed by
`/home/neteler/grass65/dist.x86_64-unknown-linux-gnu/scripts/g.extension.add'.
 Stop.

(that happens because the script's name is g.extension.add.py)
I just added a link locally
 ln -s g.extension.add.py g.extension.add
but obviously a change in
 include/Make/Script.make
is desired.

g.extension.add i.landsat.toar
...
Converting: /home/neteler/grass64/dist.x86_64-unknown-linux-gnu/docs/html/i.landsat.toar.html
to /home/neteler/grass64/dist.x86_64-unknown-linux-gnu/man/man1/i.landsat.toar.1
make[2]: Leaving directory
`/home/neteler/grassdata/spearfish60/neteler/.tmp/localhost/30236.1/i.landsat.toar'
make[1]: Leaving directory
`/home/neteler/grassdata/spearfish60/neteler/.tmp/localhost/30236.1/i.landsat.toar'
Installing 'i.landsat.toar'...
Traceback (most recent call last):
  File "/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/scripts/g.extension.add",
line 161, in <module>
    sys.exit(main())
  File "/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/scripts/g.extension.add",
line 143, in main
    'install'])
  File "/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/etc/python/grass/script/core.py",
line 54, in call
    return Popen(*args, **kwargs).wait()
  File "/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/etc/python/grass/script/core.py",
line 48, in __init__
    startupinfo, creationflags)
  File "/usr/lib64/python2.6/subprocess.py", line 595, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1106, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

No idea what's wrong here.

Markus


More information about the grass-dev mailing list