summary refs log tree commit diff
path: root/gnu/packages/machine-learning.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2022-08-01 12:44:04 +0200
committerRicardo Wurmus <rekado@elephly.net>2022-08-01 12:46:19 +0200
commita69f2cd0769d2f1323773dfb921c527037e9d5ce (patch)
tree30e6c33442c7552d0362be70813292ae30e1ab09 /gnu/packages/machine-learning.scm
parent3a656ea836f87f30f1b34852cb4efc911363d2b4 (diff)
downloadguix-a69f2cd0769d2f1323773dfb921c527037e9d5ce.tar.gz
gnu: python-umap-learn: Set NUMBA_CACHE_DIR.
* gnu/packages/machine-learning.scm (python-umap-learn)[arguments]: Add phase
to set NUMBA_CACHE_DIR.
Diffstat (limited to 'gnu/packages/machine-learning.scm')
-rw-r--r--gnu/packages/machine-learning.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index b19af8a1d5..1f85aa290f 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -2750,6 +2750,10 @@ These include a barrier, broadcast, and allreduce.")
      (list
       #:phases
       #~(modify-phases %standard-phases
+          ;; Numba needs a writable dir to cache functions.
+          (add-before 'check 'set-numba-cache-dir
+            (lambda _
+              (setenv "NUMBA_CACHE_DIR" "/tmp")))
           (replace 'check
             (lambda* (#:key tests? #:allow-other-keys)
               (when tests?