gnu: python-bbknn: Set NUMBA_CACHE_DIR.

* gnu/packages/bioinformatics.scm (python-bbknn)[arguments]: Add phase
'set-numba-cache-dir.
This commit is contained in:
Ricardo Wurmus 2022-08-01 12:45:22 +02:00
parent 9b1a2dcd5b
commit dc3ad40c6b
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -11857,6 +11857,10 @@ (define-public python-bbknn
`(#:tests? #f ; no tests are included
#: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")))
(add-after 'unpack 'do-not-fail-to-find-sklearn
(lambda _
;; XXX: I have no idea why it cannot seem to find sklearn.