[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/06: gnu: onionshare: Do not set PYTHONPATH directly.
From: |
guix-commits |
Subject: |
04/06: gnu: onionshare: Do not set PYTHONPATH directly. |
Date: |
Fri, 19 Nov 2021 04:11:34 -0500 (EST) |
rekado pushed a commit to branch core-updates-frozen
in repository guix.
commit cab90f08321fcb3e21547de3661f67bea57caade
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Nov 19 09:23:32 2021 +0100
gnu: onionshare: Do not set PYTHONPATH directly.
* gnu/packages/tor.scm (onionshare)[arguments]: Use ADD-INSTALLED-PYTHONPATH
in 'check phase.
---
gnu/packages/tor.scm | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm
index f710c82..3fb84cd 100644
--- a/gnu/packages/tor.scm
+++ b/gnu/packages/tor.scm
@@ -339,15 +339,11 @@ 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":
- branch core-updates-frozen updated (abc9a9b -> c00131d), guix-commits, 2021/11/19
- 02/06: gnu: python-eventlet: Update to 0.33.0., guix-commits, 2021/11/19
- 01/06: gnu: python-pytest-httpserver: Use GUIX_PYTHONPATH., guix-commits, 2021/11/19
- 03/06: gnu: onionshare-cli: Update to 2.4., guix-commits, 2021/11/19
- 05/06: gnu: onionshare: Run tests conditionally., guix-commits, 2021/11/19
- 04/06: gnu: onionshare: Do not set PYTHONPATH directly.,
guix-commits <=
- 06/06: gnu: onionshare: Remove trailing #T., guix-commits, 2021/11/19