[Numpy-discussion] build problem on Windows (was: build problemon RHE3 machine)

David M. Cooke cookedm at physics.mcmaster.ca
Wed May 30 20:53:06 EDT 2007


On Thu, May 31, 2007 at 02:32:21AM +0200, Albert Strasheim wrote:
> Hello all
> 
> ----- Original Message ----- 
> From: "David M. Cooke" <cookedm at physics.mcmaster.ca>
> To: "Discussion of Numerical Python" <numpy-discussion at scipy.org>
> Sent: Thursday, May 31, 2007 2:08 AM
> Subject: Re: [Numpy-discussion] build problem on Windows (was: build 
> problemon RHE3 machine)
> 
> 
> > On Wed, May 30, 2007 at 03:06:04PM +0200, Albert Strasheim wrote:
> >> Hello
> >>
> >> I took a quick look at the code, and it seems like new_fcompiler(...) is 
> >> too
> >> soon to throw an error if a Fortran compiler cannot be detected.
> >>
> >> Instead, you might want to return some kind of NoneFCompiler that throws 
> >> an
> >> error if the build actually tries to compile Fortran code.
> >
> > Maybe it's fixed now :-P new_fcompiler will return None instead of
> > raising an error. build_ext and build_clib should handle it from there
> > if they need the Fortran compiler.
> 
> Almost there, but not quite:
> 
> <snipped some output>
> don't know how to compile Fortran code on platform 'nt'
> Running from numpy source directory.
> Traceback (most recent call last):
[snip]
>   File "C:\home\albert\work2\numpy\numpy\distutils\command\config.py", line 
> 31, in _check_compiler
>     self.fcompiler.customize(self.distribution)
> AttributeError: 'NoneType' object has no attribute 'customize'

Try it now.

-- 
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke                      http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca



More information about the NumPy-Discussion mailing list