[GRASS-windows] Compiling grass7 on msys/mingw?

Glynn Clements glynn at gclements.plus.com
Sun Jan 11 07:00:34 EST 2009


Colin Nielsen wrote:

> Errors also in all of the /scripts/:

> PYTHONPATH="/usr/local/src/grass_trunk/dist.i686-pc-mingw32/etc/python:$PYTHONPATH"

>     import grass
> ImportError: No module named grass
> make: *** [db.dropcol.tmp.html] Error 1
> 
> If it's looking for the grass.py in the pythonpath, there is one there...

I suspect that Python wants PYTHONPATH to use Windows syntax, e.g. 
(untested):

-	PYTHONPATH="$(GISBASE)/etc/python:$$PYTHONPATH" \
+	PYTHONPATH="$(call mkpath,$(GISBASE)/etc/python,$$PYTHONPATH)" \
+
+ifneq ($(MINGW32),)
+mkpath = $(shell g.dirseps -h $(1))\;$(2)
+else
+mkpath = $(1):$(2)
+endif

MinGW transparently converts filename and path syntax for environment
variables which it knows about (e.g. PATH), but probably not for
PYTHONPATH.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-windows mailing list