htgoebel pushed a commit to branch wip-python-build-system in repository guix.
commit a2c79ab2dce2fa60e22af94ea5bf56a0bf38621f Author: Hartmut Goebel <[email protected]> Date: Sun Oct 9 16:09:13 2016 +0200 gnu: python-ipython: Fix build. * gnu/packages/python.scm (python-ipython, python2-ipython) [check, install-doc] set PYTHONPATH prior to running tests. --- gnu/packages/python.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index fd527b2..86f81fd 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4286,6 +4286,8 @@ without using the configuration machinery.") (info (string-append data "/info")) (examples (string-append doc "/examples"))) (setenv "LANG" "en_US.utf8") + ;; Make installed package available for running the tests + (add-installed-pythonpath inputs outputs) (with-directory-excursion "docs" ;; FIXME: html and pdf fail to build ;; (system* "make" "html") @@ -4305,9 +4307,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 inputs outputs) (setenv "HOME" "/tmp/") ;; required by a test (zero? (system* (string-append (assoc-ref outputs "out") "/bin/iptest"))))
