[SciPy-user] Building SciPy with IBM XL Fortran compiler on Mac OS X

Robert Kern robert.kern at gmail.com
Sun Apr 16 05:23:48 CDT 2006


Neil Martinsen-Burrell wrote:

> It appears that self.fcompiler is None in build_ext.py because 
> IBMFCompiler.get_version() returns None even when there is a valid IBM 
> fortran compiler installed.  Digging into 
> numpy/distutils/fcompiler/ibm.py, in get_version(), the version 
> discovery code contains:
> 
> 	    [...]
>              if not l:
>                  from distutils.version import LooseVersion
>                  self.version = version = LooseVersion(l[0])
>          return version
> 
> 
> I believe that this should be "if l".
> 
> Making that change shows the IBM compiler as available in
> 
> python setup.py config_fc --help-fcompiler
> 
> and scipy builds correctly.  Can someone make this change to 
> numpy/distutils/fcompiler/ibm.py?  Thanks.  Peace,

Done. Thank you!

-- 
Robert Kern
robert.kern at gmail.com

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco



More information about the SciPy-user mailing list