guix-commits
[Top][All Lists]
Advanced

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

03/03: gnu: python-scipy: Run tests conditionally.


From: guix-commits
Subject: 03/03: gnu: python-scipy: Run tests conditionally.
Date: Mon, 15 Nov 2021 06:49:24 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit 078934bdd4556cf19da728bd49608d7792b533f1
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Nov 15 11:46:23 2021 +0000

    gnu: python-scipy: Run tests conditionally.
    
    * gnu/packages/python-science.scm (python-scipy)[arguments]: Respect TESTS? 
in
    'CHECK phase.
---
 gnu/packages/python-science.scm | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index b68a283..ef7ae2b 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -160,11 +160,12 @@ atlas_libs = openblas
          ;; within the source directory.
          (delete 'check)
          (add-after 'install 'check
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (add-installed-pythonpath inputs outputs)
-             (with-directory-excursion "/tmp"
-               (invoke "python" "-c"
-                       "import scipy; scipy.test(verbose=2)")))))))
+           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (with-directory-excursion "/tmp"
+                 (invoke "python" "-c"
+                         "import scipy; scipy.test(verbose=2)"))))))))
     (home-page "https://www.scipy.org/";)
     (synopsis "The Scipy library provides efficient numerical routines")
     (description "The SciPy library is one of the core packages that make up



reply via email to

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