gnu: python-jplephem: Use ADD-INSTALLED-PYTHONPATH.
* gnu/packages/astronomy.scm (python-jplephem)[arguments]: Use ADD-INSTALLED-PYTHONPATH instead of setting PYTHONPATH directly; run tests conditionally.master
parent
e711ad3185
commit
823e855bd0
|
@ -1061,14 +1061,12 @@ more.")
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(when tests?
|
||||||
(setenv "PYTHONPATH"
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(string-append "./build/lib:"
|
(add-installed-pythonpath inputs outputs)
|
||||||
(getenv "PYTHONPATH")))
|
(setenv "PATH" (string-append out "/bin:" (getenv "PATH")))
|
||||||
(setenv "PATH" (string-append out "/bin:"
|
(invoke "python" "-m" "unittest" "discover" "-s" "test"))))))))
|
||||||
(getenv "PATH")))
|
|
||||||
(invoke "python" "-m" "unittest" "discover" "-s" "test")))))))
|
|
||||||
(inputs
|
(inputs
|
||||||
`(("python-numpy" ,python-numpy)))
|
`(("python-numpy" ,python-numpy)))
|
||||||
(home-page "https://github.com/brandon-rhodes/python-jplephem")
|
(home-page "https://github.com/brandon-rhodes/python-jplephem")
|
||||||
|
|
Reference in New Issue