[GRASS-dev] getting SWIG/Python to work

Markus Neteler neteler at itc.it
Fri May 18 12:34:54 EDT 2007


On Thu, May 17, 2007 at 06:27:46PM +1200, Hamish wrote:
...
> > > grass63/swig/python$ make           
> > > Makefile:21: warning: overriding commands for target `clean'
> > > ../../include/Make/Rules.make:34: warning: ignoring old commands for
> > > target `clean' gcc -c -fpic -I/usr/include/python2.3 -I./
> > > -I/usr/local/src/grass/grass63/dist.i686-pc-linux-gnu/include 
> > > python_grass6_wrap.c python_grass6_wrap.c:22:20: Python.h: No such
> > > file or directory
> > [...]
> >  
> > > $ locate Python.h
> > > [nothing]
> ..
> > Perhaps we can borrow this from GDAL where things are already solved.
> 
> It just needs a little test compile in configure, like everything else?

I just found the GDAL ticket:
http://trac.osgeo.org/gdal/ticket/1508

with solution:
http://trac.osgeo.org/gdal/changeset/10911

Looks like a simple fix.

Markus




More information about the grass-dev mailing list