[GRASS-dev] getting vdigit to compile correctly on the Mac

Glynn Clements glynn at gclements.plus.com
Sat Sep 13 19:30:06 EDT 2008


William Kyngesburye wrote:

> > Here is a link to discussion that may help explain why vdigit is not  
> > compiling correctly on a Mac--especially with OX X 10.5 (Leopard)  
> > that comes with Python 2.5--and a couple of solutions to fixing it.
> >
> > http://mail.python.org/pipermail/pythonmac-sig/2008-January/ 
> > 019628.html
> 
> I've suggested distutils before.  It just needs someone to write the  
> setup.py script.

I think that using distutils is likely to be inevitable. Too many
systems seem to have broken (or missing) python-config scripts. Also,
if you have multiple versions of Python, there's no guarantee that
python-config will use the correct one.

However, if we use distutils for building the extensions, we also need
to use it for the configure checks. IOW, configure needs to compile
and link a dummy Python extension.

Or just give up on having configure checks; the user will find out if
Python extensions can be built when we try to build them.

Somehow, I doubt that any of this is going to work with
cross-compilation.

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


More information about the grass-dev mailing list