gnu: python-pillow: Fix build.

* gnu/packages/python.scm (python-pillow)[check-installed]: Add
  installed site-package to PYTHONPATH.
This commit is contained in:
Hartmut Goebel 2016-10-07 20:32:47 +02:00
parent 5e1c9d242a
commit 6151120a71
No known key found for this signature in database
GPG Key ID: 634A8DFFD3F631DF
1 changed files with 4 additions and 1 deletions

View File

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