[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: gnu: python-bbknn: Set NUMBA_CACHE_DIR.
From: |
guix-commits |
Subject: |
03/03: gnu: python-bbknn: Set NUMBA_CACHE_DIR. |
Date: |
Mon, 1 Aug 2022 07:22:12 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit dc3ad40c6b1023785352bd995fd1bee2ba9e2770
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Aug 1 12:45:22 2022 +0200
gnu: python-bbknn: Set NUMBA_CACHE_DIR.
* gnu/packages/bioinformatics.scm (python-bbknn)[arguments]: Add phase
'set-numba-cache-dir.
---
gnu/packages/bioinformatics.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index e9f7ab9e98..4a8a743eba 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -11857,6 +11857,10 @@ million cells.")
`(#: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.