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)
|
(display line out)
|
||||||
(loop))))))))))
|
(loop))))))))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
;; Some tests need a writable homedir:
|
;; Some tests need a writable homedir:
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp")
|
||||||
;; Ensure installed modules can be found:
|
;; Ensure installed modules can be found:
|
||||||
(setenv "PYTHONPATH"
|
(add-installed-pythonpath inputs outputs)
|
||||||
(string-append %output "/lib/python"
|
|
||||||
,(version-major+minor (package-version python))
|
|
||||||
"/site-packages:"
|
|
||||||
(getenv "PYTHONPATH")))
|
|
||||||
;; Avoid `getprotobyname` issues:
|
;; Avoid `getprotobyname` issues:
|
||||||
(setenv "EVENTLET_NO_GREENDNS" "yes")
|
(setenv "EVENTLET_NO_GREENDNS" "yes")
|
||||||
;; Make Qt render "offscreen":
|
;; Make Qt render "offscreen":
|
||||||
|
|
Loading…
Reference in a new issue