guix-commits
[Top][All Lists]
Advanced

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

48/97: gnu: python-ipython: Fix build


From: Hartmut Goebel
Subject: 48/97: gnu: python-ipython: Fix build
Date: Tue, 18 Oct 2016 20:13:19 +0000 (UTC)

htgoebel pushed a commit to branch wip-python-build-system
in repository guix.

commit 6e1788ee9654a21b5401930b4d96f1cfae579d47
Author: Hartmut Goebel <address@hidden>
Date:   Sun Oct 9 16:09:13 2016 +0200

    gnu: python-ipython: Fix build
    
    * gnu/packages/python.scm (python-ipython, python2-ipython) [check] set
      PYTHONPATH prior to running tests.
---
 gnu/packages/python.scm |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9a24cb8..8c48cb3 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4305,9 +4305,11 @@ without using the configuration machinery.")
          (delete 'check)
          (add-after
           'install 'check
-          (lambda* (#:key outputs tests? #:allow-other-keys)
+          (lambda* (#:key inputs outputs tests? #:allow-other-keys)
             (if tests?
                 (with-directory-excursion "/tmp"
+                  ;; Make installed package available for running the tests
+                  (add-installed-pythonpath outputs inputs)
                   (setenv "HOME" "/tmp/") ;; required by a test
                   (zero? (system* (string-append (assoc-ref outputs "out")
                                                  "/bin/iptest"))))



reply via email to

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