[NumPy-Tickets] [NumPy] #1448: Intel Fortran compiler detection fails on Mac OS X 10.6

NumPy Trac numpy-tickets@scipy....
Thu Apr 8 15:05:52 CDT 2010


#1448: Intel Fortran compiler detection fails on Mac OS X 10.6
--------------------------------------+-------------------------------------
 Reporter:  themiwi                   |       Owner:  somebody
     Type:  defect                    |      Status:  new     
 Priority:  normal                    |   Milestone:          
Component:  Other                     |     Version:  devel   
 Keywords:  Mac OS X, Intel compiler  |  
--------------------------------------+-------------------------------------
 Running the version_cmd (as in numpy/distutils/ccompiler.py) results in
 {{{
 $ /usr/bin/ifort -FI -V -c test.f -o test.o
 Intel(R) Fortran Intel(R) 64 Compiler Professional for applications
 running on Intel(R) 64, Version 11.1    Build 20090827 Package ID:
 m_cprof_p_11.1.067
 Copyright (C) 1985-2009 Intel Corporation.  All rights reserved.

  Intel(R) Fortran 11.1-2582
 }}}

 Using the following patch fixes things for me, but probably will break
 other platforms, so somebody with a better knowledge of the whole
 compiler-detection code should take care of this.

 {{{
 Index: numpy/distutils/fcompiler/intel.py
 ===================================================================
 --- numpy/distutils/fcompiler/intel.py  (revision 8324)
 +++ numpy/distutils/fcompiler/intel.py  (working copy)
 @@ -24,8 +24,8 @@

      compiler_type = 'intel'
      compiler_aliases = ('ifort',)
 -    description = 'Intel Fortran Compiler for 32-bit apps'
 -    version_match = intel_version_match('32-bit|IA-32')
 +    description = 'Intel Fortran Compiler for 32/64-bit apps'
 +    version_match = intel_version_match('(32-bit|64)|IA-(32|64)')

      possible_executables = ['ifort', 'ifc']

 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1448>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list