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

commit 6e1788ee9654a21b5401930b4d96f1cfae579d47
Author: Hartmut Goebel <h.goe...@crazy-compilers.com>
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