gnu: python-umap-learn: Set NUMBA_CACHE_DIR.

* gnu/packages/machine-learning.scm (python-umap-learn)[arguments]: Add phase
to set NUMBA_CACHE_DIR.
This commit is contained in:
Ricardo Wurmus 2022-08-01 12:44:04 +02:00
parent 3a656ea836
commit a69f2cd076
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -2750,6 +2750,10 @@ (define-public python-umap-learn
(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?