python package using a Fortran library

Ryan Schmidt ryandesign at macports.org
Wed Jul 17 03:55:57 PDT 2013


On Jul 17, 2013, at 04:28, Michael Wimmer <wimmer.mike at gmail.com> wrote:

> 
>> If you want to use gfortran, you need to use a compiler that has it, like the gcc ports. Add variants allowing the user to choose which one, and default to 4.7:
>> 
>> https://trac.macports.org/wiki/PortfileRecipes#gcc
>> 
>> If the build does not respect the compiler choice, that is a bug that should be fixed.
>> 
> 
> Dear Ryan,
> 
> thanks for your answer, I understand that this is how it should be done
> in general. However, what I run into is a general problem, as this is a
> python setuptools behavior: By default, they always want to use the
> compiler that python itself has been compiled with (I assume to avoid
> inconsistencies).

If that is how Python in MacPorts behaves, then I would call that a bug in Python in MacPorts that needs to be fixed. Ports should use the compiler indicated by configure.compiler. Anything else is wrong.




More information about the macports-users mailing list