gnu: python-scikit-learn: Use OpenBLAS instead of ATLAS.
* gnu/packages/python.scm (python-scikit-learn)[inputs]: Replace "atlas" with "openblas". * gnu/packages/python.scm (python-scikit-learn)[arguments]: Remove build phase 'set-environment-variables, which is only needed when ATLAS is used.
This commit is contained in:
parent
719b01c157
commit
2f6b3d2e7e
1 changed files with 15 additions and 28 deletions
|
|
@ -2081,19 +2081,6 @@ sources.")
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(alist-cons-before
|
|
||||||
'build 'set-environment-variables
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
|
||||||
(let* ((atlas-threaded
|
|
||||||
(string-append (assoc-ref inputs "atlas")
|
|
||||||
"/lib/libtatlas.so"))
|
|
||||||
;; On single core CPUs only the serial library is created.
|
|
||||||
(atlas-lib
|
|
||||||
(if (file-exists? atlas-threaded)
|
|
||||||
atlas-threaded
|
|
||||||
(string-append (assoc-ref inputs "atlas")
|
|
||||||
"/lib/libsatlas.so"))))
|
|
||||||
(setenv "ATLAS" atlas-lib)))
|
|
||||||
(alist-cons-before
|
(alist-cons-before
|
||||||
'check 'set-HOME
|
'check 'set-HOME
|
||||||
;; some tests require access to "$HOME"
|
;; some tests require access to "$HOME"
|
||||||
|
|
@ -2108,9 +2095,9 @@ sources.")
|
||||||
;; (sklearn.tests.test_common.test_transformers); see
|
;; (sklearn.tests.test_common.test_transformers); see
|
||||||
;; https://github.com/scikit-learn/scikit-learn/issues/3693
|
;; https://github.com/scikit-learn/scikit-learn/issues/3693
|
||||||
(system* "nosetests" "-v" "sklearn")))
|
(system* "nosetests" "-v" "sklearn")))
|
||||||
(alist-delete 'check %standard-phases))))))
|
(alist-delete 'check %standard-phases)))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("atlas" ,atlas)
|
`(("openblas" ,openblas)
|
||||||
("python-nose" ,python-nose)))
|
("python-nose" ,python-nose)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-numpy" ,python-numpy)
|
`(("python-numpy" ,python-numpy)
|
||||||
|
|
|
||||||
Reference in a new issue