gnu: python-numpy-bootstrap: Add lapack to inputs.

* gnu/packages/python.scm (python-numpy-bootstrap)[inputs]: Add lapack to
  inputs, because OpenBLAS does not include lapack functions.
This commit is contained in:
Ricardo Wurmus 2015-06-12 10:48:58 +02:00
parent 2e189eb89f
commit cba256f8fa

View file

@ -2285,7 +2285,8 @@ (define python-numpy-bootstrap
(build-system python-build-system)
(inputs
`(("python-nose" ,python-nose)
("openblas" ,openblas)))
("openblas" ,openblas)
("lapack" ,lapack)))
(native-inputs
`(("gfortran" ,gfortran-4.8)))
(arguments
@ -2295,11 +2296,21 @@ (define python-numpy-bootstrap
(lambda* (#:key inputs #:allow-other-keys)
(call-with-output-file "site.cfg"
(lambda (port)
(format port "[openblas]
(format port
"[openblas]
libraries = openblas
library_dirs = ~a/lib
include_dirs = ~a/include
" (assoc-ref inputs "openblas") (assoc-ref inputs "openblas"))))
[lapack]
lapack_libs = lapack
library_dirs = ~a/lib
include_dirs = ~a/include
"
(assoc-ref inputs "openblas")
(assoc-ref inputs "openblas")
(assoc-ref inputs "lapack")
(assoc-ref inputs "lapack"))))
;; Use "gcc" executable, not "cc".
(substitute* "numpy/distutils/system_info.py"
(("c = distutils\\.ccompiler\\.new_compiler\\(\\)")