diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2022-08-01 12:44:04 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2022-08-01 12:46:19 +0200 |
commit | a69f2cd0769d2f1323773dfb921c527037e9d5ce (patch) | |
tree | 30e6c33442c7552d0362be70813292ae30e1ab09 /gnu | |
parent | 3a656ea836f87f30f1b34852cb4efc911363d2b4 (diff) | |
download | guix-a69f2cd0769d2f1323773dfb921c527037e9d5ce.tar.gz guix-a69f2cd0769d2f1323773dfb921c527037e9d5ce.zip |
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')
-rw-r--r-- | gnu/packages/machine-learning.scm | 4 |
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? |