numpy.distutils Intel Visual Fortran detection

Albert Strasheim fullung at
Wed Oct 25 08:16:20 CDT 2006

Hello all

I'm trying to get SciPy compiling with MSVC and the Intel Visual Fortran 
compiler, version 9.1. I'm running into problems with the version 
detection code failing.

The current version_cmd in is:

'version_cmd'  : [fc_exe, "-FI -V -c %(fname)s.f -o %(fname)s.o" \
                  % {'fname':dummy_fortran_file()}],

Even when running inside a Command Prompt with the necessary environment 
variables for the compiler set up, this command causes the following 

LINK : fatal error LNK1104: cannot open file 'ifconsol.lib'

Changing version_cmd to to pass /help /quiet instead of trying to 
compile a dummy file does the trick. (/quiet so that the compiler 
doesn't warn about it being called ifort now, causing the regular 
expression that detects the version to fail.)

Can we fix this? Is it important to try to compile the dummy file?



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

More information about the Numpy-discussion mailing list