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
|
@ -2082,35 +2082,22 @@ sources.")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(alist-cons-before
|
(alist-cons-before
|
||||||
'build 'set-environment-variables
|
'check 'set-HOME
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
;; some tests require access to "$HOME"
|
||||||
(let* ((atlas-threaded
|
(lambda _ (setenv "HOME" "/tmp"))
|
||||||
(string-append (assoc-ref inputs "atlas")
|
;; Tests can only be run after the library has been installed and not
|
||||||
"/lib/libtatlas.so"))
|
;; within the source directory.
|
||||||
;; On single core CPUs only the serial library is created.
|
(alist-cons-after
|
||||||
(atlas-lib
|
'install 'check
|
||||||
(if (file-exists? atlas-threaded)
|
(lambda _
|
||||||
atlas-threaded
|
(with-directory-excursion "/tmp"
|
||||||
(string-append (assoc-ref inputs "atlas")
|
;; With Python 3 one test of 3334 fails
|
||||||
"/lib/libsatlas.so"))))
|
;; (sklearn.tests.test_common.test_transformers); see
|
||||||
(setenv "ATLAS" atlas-lib)))
|
;; https://github.com/scikit-learn/scikit-learn/issues/3693
|
||||||
(alist-cons-before
|
(system* "nosetests" "-v" "sklearn")))
|
||||||
'check 'set-HOME
|
(alist-delete 'check %standard-phases)))))
|
||||||
;; some tests require access to "$HOME"
|
|
||||||
(lambda _ (setenv "HOME" "/tmp"))
|
|
||||||
;; Tests can only be run after the library has been installed and not
|
|
||||||
;; within the source directory.
|
|
||||||
(alist-cons-after
|
|
||||||
'install 'check
|
|
||||||
(lambda _
|
|
||||||
(with-directory-excursion "/tmp"
|
|
||||||
;; With Python 3 one test of 3334 fails
|
|
||||||
;; (sklearn.tests.test_common.test_transformers); see
|
|
||||||
;; https://github.com/scikit-learn/scikit-learn/issues/3693
|
|
||||||
(system* "nosetests" "-v" "sklearn")))
|
|
||||||
(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)
|
||||||
|
|
Loading…
Reference in New Issue