python-numpy: improved support for BLAS and LAPACK via gfortran

svn path=/nixpkgs/trunk/; revision=22787
This commit is contained in:
Peter Simons 2010-07-28 13:05:35 +00:00
parent 93b18ceb30
commit df013849e4

View File

@ -420,16 +420,16 @@ rec {
sha256 = "01lf3nc2lp1qkrqnnar50vb7i6y07d1zs6f9yc3kw4p5fd2vhyrf";
};
# TODO: add ATLAS=${pkgs.atlas}
installCommand = ''
export BLAS=${pkgs.blas} LAPACK=${pkgs.liblapack}
python setup.py build --fcompiler="gnu95"
python setup.py install --root="$out"
'';
doCheck = false;
buildInputs = [ pkgs.liblapack pkgs.blas pkgs.gfortran ];
# The build should be run as follows:
#
# python setup.py config_fc --fcompiler=gnu95 build
# python setup.py config_fc --fcompiler=gnu95 install
#
# But I con't figure out how to pass the extra flags to setuptools.
buildInputs = [ pkgs.gfortran ];
propagatedBuildInputs = [ pkgs.liblapack pkgs.blas ];
meta = {
description = "Scientific tools for Python";