[Top][All Lists]

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

01/01: python: Honor '--cores=...' in tests.

From: Eric Bavier
Subject: 01/01: python: Honor '--cores=...' in tests.
Date: Sat, 17 Nov 2018 01:43:44 -0500 (EST)

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

commit 5b01b6034aeab32a5011c5757f18bd9772d3497d
Author: Eric Bavier <address@hidden>
Date:   Thu Nov 1 21:18:41 2018 -0500

    python: Honor '--cores=...' in tests.
    * gnu/packages/python.scm (python-2.7)[arguments]: Add #:make-flags.
 gnu/packages/python.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 2b6a064..46ce0dd 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -190,6 +190,9 @@
              (string-append "LDFLAGS=-Wl,-rpath="
                             (assoc-ref %outputs "out") "/lib"))
+       ;; With no -j argument tests use all available cpus, so provide one.
+       #:make-flags
+       (list (format #f "EXTRATESTOPTS=-j~d" (parallel-job-count)))
         #:modules ((ice-9 ftw) (ice-9 match)
                    (guix build utils) (guix build gnu-build-system))

reply via email to

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