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

View file

@ -3991,9 +3991,12 @@ (define-public python-pillow
`(#: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 inputs outputs)
(and (zero? (system* "python" "selftest.py"
"--installed"))
(zero? (system* "python" "test-installed.py"))))))