[Top][All Lists]

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

01/01: gnu: python-2.7: Fix build.

From: guix-commits
Subject: 01/01: gnu: python-2.7: Fix build.
Date: Sun, 13 Jan 2019 17:49:20 -0500 (EST)

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

commit a9883939977f5fb0bd62d1dccb1ab0a772a4b720
Author: Christopher Baines <address@hidden>
Date:   Sun Jan 13 22:43:20 2019 +0000

    gnu: python-2.7: Fix build.
    The -j flag is passed in through #:make-flags and EXTRATESTOPTS. This is
    combined with the TESTOPTS, and in Python 2, that includes the -l flag by
    The -l flag, is for finding memory leaks in tests, and is incompatible with
    the -j flag, and the build previously failed at the start of the 'check
    phase. Therefore, remove the -l flag from the Python 2 testsuite, as it
    doesn't sound like a useful thing to do when building the package for Guix.
    * gnu/packages/python.scm (python-2.7): Add 'remove-findleaks-from-testopts
 gnu/packages/python.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9b43f46..2971dfe 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -200,6 +200,14 @@
                    (guix build utils) (guix build gnu-build-system))
         (modify-phases %standard-phases
+          (add-after 'unpack 'remove-findleaks-from-testopts
+            (lambda _
+              (substitute* ""
+                ;; -l which is short for --findleaks isn't compatible with the
+                ;; -j flag added through the #:make-flags, therefore remove
+                ;; it. This only affects python-2.7.
+                (("TESTOPTS=   -l ") "TESTOPTS= "))
+              #t))
            'configure 'patch-lib-shells
            (lambda _

reply via email to

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