guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit bff8e4795cbb61841f0f6b27431217a209750ddf
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Jan 2 13:18:53 2026 +0000

    gnu: python-metacells: Simplify.
    
    * gnu/packages/bioinformatics.scm (python-metacells):
    [arguments] <phases>: Merge 'set-numba-cache-dir and 'build-extension
    into 'pre-check and just remove local source to prevent rebuilding
    expansions for tests, it saves some compute time with the same output.
    [native-inputs]: Add pybind11.
    
    Change-Id: I95e6706813cc5d3167593440c714c5091303cb00
---
 gnu/packages/bioinformatics.scm | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 0e23f579a0..d6946e1a5d 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -3258,12 +3258,11 @@ and gene expression visualization.")
             (lambda _
               ;; Without this they pass -march=native to the compiler.
               (setenv "WHEEL" "1")))
-          ;; Numba needs a writable dir to cache functions.
-          (add-before 'check 'set-numba-cache-dir
-            (lambda _ (setenv "NUMBA_CACHE_DIR" "/tmp")))
-          (add-before 'build 'build-extensions
+          (add-before 'check 'pre-check
             (lambda _
-              (invoke "python" "setup.py" "build_ext" "--inplace"))))))
+              ;; Numba needs a writable dir to cache functions.
+              (setenv "NUMBA_CACHE_DIR" "/tmp")
+              (delete-file-recursively "metacells"))))))
     (propagated-inputs (list python-anndata
                              python-cvxpy
                              python-fastcluster
@@ -3277,7 +3276,7 @@ and gene expression visualization.")
                              python-scipy
                              python-threadpoolctl
                              python-umap-learn))
-    (native-inputs (list python-pytest python-setuptools))
+    (native-inputs (list pybind11 python-pytest python-setuptools))
     (home-page "https://github.com/tanaylab/metacells.git";)
     (synopsis "Single-cell RNA Sequencing Analysis")
     (description "The metacells package implements the improved metacell

Reply via email to