[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/05: gnu: python-numpy-bootstrap: Add lapack to inputs.
From: |
Ricardo Wurmus |
Subject: |
01/05: gnu: python-numpy-bootstrap: Add lapack to inputs. |
Date: |
Mon, 15 Jun 2015 08:36:50 +0000 |
rekado pushed a commit to branch master
in repository guix.
commit cba256f8faaa18457fc9b77e8b401f17b89bdd75
Author: Ricardo Wurmus <address@hidden>
Date: Fri Jun 12 10:48:58 2015 +0200
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.
---
gnu/packages/python.scm | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 232a785..39fd90a 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2285,7 +2285,8 @@ writing C extensions for Python as easy as Python
itself.")
(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 @@ writing C extensions for Python as easy as Python
itself.")
(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\\(\\)")