guix-commits
[Top][All Lists]
Advanced

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

03/04: gnu: python-cython: Speed up test suite.


From: guix-commits
Subject: 03/04: gnu: python-cython: Speed up test suite.
Date: Sat, 13 Jul 2019 12:54:15 -0400 (EDT)

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

commit e9194eb04896165f15830862c42673e96bc5c5f7
Author: Marius Bakke <address@hidden>
Date:   Sat Jul 13 18:51:16 2019 +0200

    gnu: python-cython: Speed up test suite.
    
    * gnu/packages/python-xyz.scm (python-cython)[arguments]: In the CHECK 
phase,
    disable compiler optimizations and enable (some) parallel tests.
---
 gnu/packages/python-xyz.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 943ffdd..a60e1c7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3229,7 +3229,12 @@ provides additional functionality on the produced 
Mallard documents.")
 
          (replace 'check
            (lambda _
-             (invoke "python" "runtests.py" "-vv"))))))
+             ;; Disable compiler optimizations to greatly reduce the running
+             ;; time of the test suite.
+             (setenv "CFLAGS" "-O0")
+
+             (invoke "python" "runtests.py" "-vv"
+                     "-j" (number->string (parallel-job-count))))))))
     (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]