guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

98/131: gnu: python2-send2trash: Do not set PYTHONPATH.


From: guix-commits
Subject: 98/131: gnu: python2-send2trash: Do not set PYTHONPATH.
Date: Fri, 29 Jan 2021 09:22:12 -0500 (EST)

apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.

commit e2f23d59cf6f3f200c6bd82e3a697a697d844d3c
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Jan 24 10:50:26 2021 -0500

    gnu: python2-send2trash: Do not set PYTHONPATH.
    
    * gnu/packages/python-xyz.scm (python2-send2trash): Do not override the
    arguments field.
---
 gnu/packages/python-xyz.scm | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index fa036a0..4f746cc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17565,17 +17565,7 @@ user's @file{~/Trash} directory.")
     (license license:bsd-3)))
 
 (define-public python2-send2trash
-  (package
-    (inherit (package-with-python2 (strip-python2-variant python-send2trash)))
-    (arguments
-     (substitute-keyword-arguments (package-arguments python-send2trash)
-       ((#:phases phases)
-        `(modify-phases ,phases
-           (add-before 'check 'setenv
-             (lambda _
-               (setenv "PYTHONPATH"
-                       (string-append (getcwd) ":" (getenv "PYTHONPATH")))
-               #t))))))))
+  (package-with-python2 (strip-python2-variant python-send2trash)))
 
 (define-public python-pyfavicon
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]