[GRASS-dev] g.extension still broken in GRASS 7 on Mac

Vaclav Petras wenzeslaus at gmail.com
Tue Oct 22 16:21:09 PDT 2013


In Makefiles there is way how to run something within a GRASS session
without requiring the current session. It is used for building
documentation and for example in gui/wxpython Makefile:

$(call run_grass,$(PYTHON) $< "manager" >> $@)

which uses this from include/Make/Rules.make:

GRASS_PYTHONPATH := $(call mkpath,$(GISBASE)/etc/python,$$PYTHONPATH)
GRASS_PYTHONPATH := $(call
mkpath,$(ARCH_DISTDIR)/etc/python,$(GRASS_PYTHONPATH))

run_grass = \
GISRC=$(RUN_GISRC) \
GISBASE=$(RUN_GISBASE) \
 PATH="$(ARCH_DISTDIR)/bin:$(GISBASE)/bin:$(GISBASE)/scripts:$$PATH" \
PYTHONPATH="$(GRASS_PYTHONPATH)" \
 $(LD_LIBRARY_PATH_VAR)="$(BIN):$(ARCH_LIBDIR):$(BASE_LIBDIR):$($(LD_LIBRARY_PATH_VAR))"
\
LC_ALL=C \
 $(1)

This is all I know now. I cannot look at it now more but hopefully this
information will be useful.


On Tue, Oct 22, 2013 at 6:16 PM, Michael Barton <Michael.Barton at asu.edu>wrote:

> Sounds like a plan.
>
> Michael
> ______________________________
> C. Michael Barton
> Director, Center for Social Dynamics & Complexity
> Professor of Anthropology, School of Human Evolution & Social Change
> Arizona State University
> Tempe, AZ  85287-2402
> USA
>
> voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
> fax:          480-965-7671(SHESC), 480-727-0709 (CSDC)
> www:    http://csdc.asu.edu, http://shesc.asu.edu
>                 http://www.public.asu.edu/~cmbarton
>
> On Oct 22, 2013, at 3:05 PM, Markus Neteler <neteler at osgeo.org>
>  wrote:
>
> > Michael,
> >
> > it tries to run the virtual session therein to generate the header of
> > the manual. So it wants to use PERMANENT rather than store anything
> > there. Perhaps there is a switch needed/existing to not test who the
> > owner of the mapset is.
> >
> > Markus
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20131022/23bc34d5/attachment.html>


More information about the grass-dev mailing list