diff options
author | Brian Leung <bkleung89@gmail.com> | 2019-06-25 20:50:54 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2019-08-05 10:23:02 +0300 |
commit | 71804546b182b8300334df6fb23d207d5e5ba61c (patch) | |
tree | da18099cca72b00481d1c71952dc3fe43a8e0656 /gnu/packages/machine-learning.scm | |
parent | d9340de9031211c220b5b710e64af29e066f26f2 (diff) | |
download | guix-71804546b182b8300334df6fb23d207d5e5ba61c.tar.gz |
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>
Diffstat (limited to 'gnu/packages/machine-learning.scm')
-rw-r--r-- | gnu/packages/machine-learning.scm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 2dc7dc81ef..dd5ee1e9ee 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -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 |