From a69f2cd0769d2f1323773dfb921c527037e9d5ce Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 1 Aug 2022 12:44:04 +0200 Subject: gnu: python-umap-learn: Set NUMBA_CACHE_DIR. * gnu/packages/machine-learning.scm (python-umap-learn)[arguments]: Add phase to set NUMBA_CACHE_DIR. --- gnu/packages/machine-learning.scm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gnu') 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? -- cgit v1.2.3