mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-19 21:27:37 -05:00
gnu: onionshare: Do not set PYTHONPATH directly.
* gnu/packages/tor.scm (onionshare)[arguments]: Use ADD-INSTALLED-PYTHONPATH in 'check phase.
This commit is contained in:
parent
66fc69794c
commit
cab90f0832
1 changed files with 2 additions and 6 deletions
|
@ -339,15 +339,11 @@ (define-public onionshare
|
|||
(display line out)
|
||||
(loop))))))))))
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
;; Some tests need a writable homedir:
|
||||
(setenv "HOME" "/tmp")
|
||||
;; Ensure installed modules can be found:
|
||||
(setenv "PYTHONPATH"
|
||||
(string-append %output "/lib/python"
|
||||
,(version-major+minor (package-version python))
|
||||
"/site-packages:"
|
||||
(getenv "PYTHONPATH")))
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
;; Avoid `getprotobyname` issues:
|
||||
(setenv "EVENTLET_NO_GREENDNS" "yes")
|
||||
;; Make Qt render "offscreen":
|
||||
|
|
Loading…
Reference in a new issue