gnu: python-hdf4: Do not set PYTHONPATH.
* gnu/packages/python-xyz.scm (python-hdf4) [phases]{check}: Do not set PYTHONPATH.master
parent
2cbad73e06
commit
10e768427f
|
@ -805,14 +805,6 @@ Expressions are constructed from parsed strings or directly in Python.")
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
;; The 'runexamples' script sets PYTHONPATH to CWD, then goes
|
|
||||||
;; on to import numpy. Somehow this works on their CI system.
|
|
||||||
;; Let's just manage PYTHONPATH here instead.
|
|
||||||
(substitute* "runexamples.sh"
|
|
||||||
(("export PYTHONPATH=.*") ""))
|
|
||||||
(setenv "PYTHONPATH"
|
|
||||||
(string-append (getcwd) ":"
|
|
||||||
(getenv "PYTHONPATH")))
|
|
||||||
(invoke "./runexamples.sh")
|
(invoke "./runexamples.sh")
|
||||||
(invoke "nosetests" "-v"))))))
|
(invoke "nosetests" "-v"))))))
|
||||||
(home-page "https://github.com/fhs/python-hdf4")
|
(home-page "https://github.com/fhs/python-hdf4")
|
||||||
|
|
Reference in New Issue