building issue in windows

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

building issue in windows

Igor Sylvester-2
Hi.
I have mingw and Visual Studio installed on my computer.  I am following the building instructions posted in [1].  I explicitly tell setup.py to use mingw by passing the argument --compiler=mingw32.  However, setuptools is using Visual Studio anyways.  has anyone encountered this problem?  I am putting the mingw bin directory in my PATH without avail.  Is there extra configuration needed for a system with both compilers installed?

Thank you for your help.
Igor


[1] http://www.scipy.org/Installing_SciPy/Windows

_______________________________________________
Numpy-discussion mailing list
[hidden email]
http://projects.scipy.org/mailman/listinfo/numpy-discussion
Reply | Threaded
Open this post in threaded view
|

Re: building issue in windows

Robert Kern-2
On Tue, May 20, 2008 at 8:33 AM, Igor Sylvester <[hidden email]> wrote:
> Hi.
> I have mingw and Visual Studio installed on my computer.  I am following the
> building instructions posted in [1].  I explicitly tell setup.py to use
> mingw by passing the argument --compiler=mingw32.  However, setuptools is
> using Visual Studio anyways.  has anyone encountered this problem?

Strictly speaking, the --compiler flag goes on the config and
build_ext commands. There is some logic that accepts it on the build
command, too, and transfers it over to the build_ext command, but it
is possibly buggy. I would make a setup.cfg file (place it next to the
setup.py) with the following contents:

[config]
compiler=mingw32

[build_ext]
compiler=mingw32

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco
_______________________________________________
Numpy-discussion mailing list
[hidden email]
http://projects.scipy.org/mailman/listinfo/numpy-discussion