gnu: python-scikit-learn: Make gzip timestamps writable.
* gnu/packages/machine-learning.scm (python-scikit-learn) [arguments]: Add custom phase to make gzip timestamps writable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
d9340de903
commit
71804546b1
|
@ -821,8 +821,14 @@ computing environments.")
|
|||
(setenv "HOME" "/tmp")
|
||||
|
||||
(invoke "pytest" "sklearn" "-m" "not network")))
|
||||
;; FIXME: This fails with permission denied
|
||||
(delete 'reset-gzip-timestamps))))
|
||||
(add-before 'reset-gzip-timestamps 'make-files-writable
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
;; Make sure .gz files are writable so that the
|
||||
;; 'reset-gzip-timestamps' phase can do its work.
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(for-each make-file-writable
|
||||
(find-files out "\\.gz$"))
|
||||
#t))))))
|
||||
(inputs
|
||||
`(("openblas" ,openblas)))
|
||||
(native-inputs
|
||||
|
|
Loading…
Reference in New Issue