[geos-devel] setup.py for Python SWIG wrappers
strk at refractions.net
strk at refractions.net
Fri Apr 8 12:27:24 EDT 2005
On Fri, Apr 08, 2005 at 08:46:51AM -0600, Sean Gillies wrote:
...
> OK, now I understand. This will be tricky. How to detect which
> compiler is going to be used on windows? If the compiler were
> specified on the command line like
>
> python setup.py build --compiler=mingw
>
> it would be easy, just sys.argv[2]. But if users are specifying the
> compiler in a setup.cfg file, then this doesn't work and the compiler
> isn't even set until the build target is evaluated.
GEOS uses autoconf, either generating a Makefile for python dir
or having python's Makefile include a global Makefile.config
should do. I'm not a win32 user, so can't check it myself, but
looking for "mingw" or "gcc" or "whatever" in your generated
Makefiles would be a good start.
--strk;
More information about the geos-devel
mailing list