Discussion:
[Numpy-discussion] Build fortran extension on Windows with gfortran and MSVC
Marek Wojciechowski
2016-02-11 15:40:22 UTC
Permalink
Hi!

It seems that on Windows + Python-3.5 fortran extensions cannot be built
anymore with f2py and mingw32 compilers, because of new MSVC. Here is the
short description of the errors one gets:

http://stackoverflow.com/questions/33822554/build-fortran-extension-on-windows-with-gfortran-and-msvc

This is sad, because this worked quite nicely with all previous python
versions. I'm curious what are the options now? Is this going to be supported
in the future, with mingw-w64 for example?

Regards,
--
Marek

---
Politechnika Łódzka
Lodz University of Technology

Treść tej wiadomości zawiera informacje przeznaczone tylko dla adresata.
Jeżeli nie jesteście Państwo jej adresatem, bądź otrzymaliście ją przez pomyłkę
prosimy o powiadomienie o tym nadawcy oraz trwałe jej usunięcie.

This email contains information intended solely for the use of the individual to whom it is addressed.
If you are not the intended recipient or if you have received this message in error,
please notify the sender and delete it from your system.
Jose Gomez-Dans
2016-02-11 16:23:23 UTC
Permalink
Hi,
Post by Marek Wojciechowski
It seems that on Windows + Python-3.5 fortran extensions cannot be built
anymore with f2py and mingw32 compilers, because of new MSVC. Here is the
Off-topic, but this is something that I get asked quite often, and I don't
know what to say, not being a windows user:
Is there some "howto" compile f2py fortran modules from scratch in windows
with anaconda available?

Jose
Marek Wojciechowski
2016-02-11 16:44:19 UTC
Permalink
Post by Jose Gomez-Dans
Hi,
Post by Marek Wojciechowski
It seems that on Windows + Python-3.5 fortran extensions cannot be built
anymore with f2py and mingw32 compilers, because of new MSVC. Here is the
Off-topic, but this is something that I get asked quite often, and I don't
Is there some "howto" compile f2py fortran modules from scratch in windows
with anaconda available?
After installing mingw (conda install mingw), you should go like on Linux. I
think f2py is choosing --compiler=mingw32 by default.
--
Marek

---
Politechnika Łódzka
Lodz University of Technology

Treść tej wiadomości zawiera informacje przeznaczone tylko dla adresata.
Jeżeli nie jesteście Państwo jej adresatem, bądź otrzymaliście ją przez pomyłkę
prosimy o powiadomienie o tym nadawcy oraz trwałe jej usunięcie.

This email contains information intended solely for the use of the individual to whom it is addressed.
If you are not the intended recipient or if you have received this message in error,
please notify the sender and delete it from your system.
Marek Wojciechowski
2016-02-11 16:40:36 UTC
Permalink
Post by Marek Wojciechowski
Hi!
It seems that on Windows + Python-3.5 fortran extensions cannot be built
anymore with f2py and mingw32 compilers, because of new MSVC. Here is the
http://stackoverflow.com/questions/33822554/build-fortran-extension-on-windo
ws-with-gfortran-and-msvc
This is sad, because this worked quite nicely with all previous python
versions. I'm curious what are the options now? Is this going to be
supported in the future, with mingw-w64 for example?
I found that the effort is on the way: http://mingwpy.github.io. The roadmap is
quite ambitious...


Regards,
--
Marek

---
Politechnika Łódzka
Lodz University of Technology

Treść tej wiadomości zawiera informacje przeznaczone tylko dla adresata.
Jeżeli nie jesteście Państwo jej adresatem, bądź otrzymaliście ją przez pomyłkę
prosimy o powiadomienie o tym nadawcy oraz trwałe jej usunięcie.

This email contains information intended solely for the use of the individual to whom it is addressed.
If you are not the intended recipient or if you have received this message in error,
please notify the sender and delete it from your system.
Loading...