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

commit e79d8fb5b32d2fcd69b0a5a065a5090cd3e9d6e3
Author: Hartmut Goebel <h.goe...@crazy-compilers.com>
Date:   Fri Oct 7 20:32:47 2016 +0200

    gnu: python-pillow: Fix build.
    
    * gnu/packages/python.scm (python-pillow)[check-installed]: Add
      installed site-package to PYTHONPATH.
---
 gnu/packages/python.scm |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index d05a319..d17b66e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3741,9 +3741,12 @@ services for your Python modules and applications.")
      `(#:phases (modify-phases %standard-phases
                   (add-after
                    'install 'check-installed
-                   (lambda _
+                   (lambda* (#:key outputs inputs #:allow-other-keys)
                      (begin
                        (setenv "HOME" (getcwd))
+                       ;; Make installed package available for running the
+                       ;; tests
+                       (add-installed-pythonpath outputs inputs)
                        (and (zero? (system* "python" "selftest.py"
                                             "--installed"))
                             (zero? (system* "python" "test-installed.py"))))))

Reply via email to