guix-commits
[Top][All Lists]
Advanced

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

46/57: gnu: python-ipython: Fix build


From: Hartmut Goebel
Subject: 46/57: gnu: python-ipython: Fix build
Date: Thu, 13 Oct 2016 15:20:35 +0000 (UTC)

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

commit e91f1ff8d2f38e6e05af897dee7cd9b0c94d1451
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 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

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