mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-27 06:42:14 -05:00
gnu: python-ipython: Fix build.
* gnu/packages/python.scm (python-ipython, python2-ipython) [check, install-doc] set PYTHONPATH prior to running tests.
This commit is contained in:
parent
d548e6aa06
commit
eee5cd0440
1 changed files with 5 additions and 1 deletions
|
@ -4664,6 +4664,8 @@ (define-public python-ipython
|
|||
(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: pdf fails to build
|
||||
;;(system* "make" "pdf" "PAPER=a4")
|
||||
|
@ -4683,9 +4685,11 @@ (define-public python-ipython
|
|||
(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"))))
|
||||
|
|
Loading…
Reference in a new issue