guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: python-velocyto: Set cache directory for Num


From: guix-commits
Subject: branch master updated: gnu: python-velocyto: Set cache directory for Numba.
Date: Thu, 31 Mar 2022 10:02:47 -0400

This is an automated email from the git hooks/post-receive script.

rekado pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 05e68f31ba gnu: python-velocyto: Set cache directory for Numba.
05e68f31ba is described below

commit 05e68f31ba88586ba6b958b1a76f613f64c0c9cc
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu Mar 31 16:01:27 2022 +0200

    gnu: python-velocyto: Set cache directory for Numba.
    
    * gnu/packages/bioinformatics.scm (python-velocyto)[arguments]: Add phase
    'set-numba-cache-dir.
---
 gnu/packages/bioinformatics.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index fd659b59f8..fd7d70c6b4 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -13519,6 +13519,13 @@ repeated areas between contigs.")
        (snippet
         '(for-each delete-file (find-files "." "\\.c")))))
     (build-system python-build-system)
+    (arguments
+     '(#: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"))))))
     (native-inputs
      (list python-joblib))
     (propagated-inputs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]