[GRASS-user] Manual to own python script

Johannes Radinger JRadinger at gmx.at
Tue May 24 05:09:26 EDT 2011


Hej,

I tried as you recommended:

make MODULE_TOPDIR='Applications/GRASS-6.5.app'


but following error occured:

Makefile:5: Applications/GRASS-6.5.app/include/Make/Script.make: No such file or directory
make: *** No rule to make target `Applications/GRASS-6.5.app/include/Make/Script.make'.  Stop.


Then I checked and found that the path tho the include folder on Mac is:
'/Applications/GRASS-6.5.app/Contents/MacOS' thats why I tried:
make MODULE_TOPDIR='/Applications/GRASS-6.5.app/Contents/MacOS'

but again a got an error (can't rememeber which one) and when I try to install I get:
noname:Fidimo admin$ make MODULE_TOPDIR='/Applications/GRASS-6.5.app/Contents/MacOS' install
/Applications/GRASS-6.5.app/Contents/MacOS/include/Make/Script.make:47: warning: overriding commands for target `install'
/Applications/GRASS-6.5.app/Contents/MacOS/include/Make/Rules.make:90: warning: ignoring old commands for target `install'
/usr/bin/install -c  /Users/admin/Documents/GRASS-Source/grass-6.5.svn_2011_05_05/dist.i386-apple-darwin10.6.0/scripts/Fidimo.py /Applications/GRASS-6.5.app/Contents/MacOS/scripts/
/usr/bin/install -c  -m 644 /Users/admin/Documents/GRASS-Source/grass-6.5.svn_2011_05_05/dist.i386-apple-darwin10.6.0/docs/html/Fidimo.py.html /Applications/GRASS-6.5.app/Contents/MacOS/docs/html/
/usr/bin/install -c  -m 644 /Users/admin/Documents/GRASS-Source/grass-6.5.svn_2011_05_05/dist.i386-apple-darwin10.6.0/man/man1/Fidimo.py.1 /Applications/GRASS-6.5.app/Contents/MacOS/man/man1/
install: /Users/admin/Documents/GRASS-Source/grass-6.5.svn_2011_05_05/dist.i386-apple-darwin10.6.0/man/man1/Fidimo.py.1: No such file or directory
make: *** [install] Error 71

Anyway I seems that the add-on is installed and it opens when I call it. I didn't test it yet but I think it should work. 

For uninstalling respectivly reinstalling a newer version of my script is it just necessary to delete the script from the script-folder and the html from doc? anything else necessary?

/johannes


-------- Original-Nachricht --------
> Datum: Mon, 23 May 2011 22:04:10 +0200
> Von: Markus Neteler <neteler at osgeo.org>
> An: Johannes Radinger <JRadinger at gmx.at>
> CC: grass-user at lists.osgeo.org
> Betreff: Re: [GRASS-user] Manual to own python script

> On Thu, May 19, 2011 at 4:58 PM, Johannes Radinger <JRadinger at gmx.at>
> wrote:
> >> On Mon, May 16, 2011 Markus Neteler:
> ...
> > Hello I am still not sure how to install the script. I've now a folder
> called MyScript including:
> > * Makefile
> > * MyScript.py
> > * MyScript.py.html
> >
> > What should I do with this folder? I tried to put the folder into the
> bin directory but then I can't call the module anymore (nothing happens).
> 
> It must go into the source code or elsewhere.
> If you decide to put it along the existing GRASS scripts, just run:
> make
> make install
> 
> otherwise
> make MODULE_TOPDIR=/path/to/grass70src/
> make MODULE_TOPDIR=/path/to/grass70src/ install
> 
> > Just for your information I work on Mac OSX and GRASS GIS 6.5SVN. I know
> it from the r.stream add-ons, I had to compile them and then put the
> add-ons manually into the bin folder and the html files into the html folder.
> 
> The latter should not be needed if you do the "install" step.
> 
> > But how to do it with my pyhton script?
> 
> It works the same way.
> 
> Markus

-- 
NEU: FreePhone - kostenlos mobil telefonieren!			
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the grass-user mailing list