[f2py] Compiling/linking the Fortran source files manually

Pearu Peterson pearu.peterson at gmail.com
Tue Apr 26 11:30:02 EEST 2011



On 04/26/2011 11:26 AM, Ben Forbes wrote:
> I'm attempting to implement that, but there's suddenly another problem:
>
> C:\Users\bdforbes\pyfor\simple_f2py>f2py -c -m foo helloworld.f90
> --fcompiler=intelvem
> Forcing DISTUTILS_USE_SDK=1
> Traceback (most recent call last):
>    File "C:\Python27\Scripts\f2py-script.py", line 24, in<module>
>      main()
>    File "C:\Python27\lib\site-packages\numpy\f2py\f2py2e.py", line 561, in main
>      run_compile()
>    File "C:\Python27\lib\site-packages\numpy\f2py\f2py2e.py", line 447,
> in run_compile
>      fcompiler.load_all_fcompiler_classes()
>    File "C:\Python27\lib\site-packages\numpy\distutils\fcompiler\__init__.py",
> line 736, in load_all_fco
> mpiler_classes
>      fcompiler_aliases[alias][1].__name__))
> ValueError: alias 'ifort' defined for both IntelFCompiler and IntelFCompiler
>
> I can't remember what changed to make this happen.

Look for compiler_aliases in intel.py

Pearu





More information about the f2py-users mailing list