guix-commits
[Top][All Lists]
Advanced

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

02/05: gnu: python-cython: Honor #:tests? flag.


From: guix-commits
Subject: 02/05: gnu: python-cython: Honor #:tests? flag.
Date: Mon, 25 Oct 2021 07:02:37 -0400 (EDT)

efraim pushed a commit to branch core-updates-frozen
in repository guix.

commit ab961fe54232baf093c91cb7bc8433eebbadf461
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Oct 25 11:58:30 2021 +0300

    gnu: python-cython: Honor #:tests? flag.
    
    * gnu/packages/python-xyz.scm (python-cython)[arguments]: Adjust custom
    'check phase to honor the #:tests? flag.
---
 gnu/packages/python-xyz.scm | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9aa2dc8..f1b552d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5185,16 +5185,17 @@ provides additional functionality on the produced 
Mallard documents.")
              ;; time of the test suite.
              (setenv "CFLAGS" "-O0")
 
-             (invoke "python" "runtests.py" "-vv"
-                     "-j" (number->string (parallel-job-count))
-                     ;; XXX: On 32-bit architectures, running the parallel 
tests
-                     ;; fails on many-core systems, see
-                     ;; <https://github.com/cython/cython/issues/2807>.
-                     ,@(if (not (target-64bit?))
-                           '("-x" "run.parallel")
-                           '())
-                     ;; This test fails when running on 24 cores.
-                     "-x" "cpp_stl_conversion"))))))
+             (when tests?
+               (invoke "python" "runtests.py" "-vv"
+                       "-j" (number->string (parallel-job-count))
+                       ;; XXX: On 32-bit architectures, running the parallel 
tests
+                       ;; fails on many-core systems, see
+                       ;; <https://github.com/cython/cython/issues/2807>.
+                       ,@(if (not (target-64bit?))
+                             '("-x" "run.parallel")
+                             '())
+                       ;; This test fails when running on 24 cores.
+                       "-x" "cpp_stl_conversion")))))))
     (home-page "https://cython.org/";)
     (synopsis "C extensions for Python")
     (description "Cython is an optimising static compiler for both the Python



reply via email to

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