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

commit e91f1ff8d2f38e6e05af897dee7cd9b0c94d1451
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 aa5a912..e82083b 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4299,9 +4299,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