guix-commits
[Top][All Lists]
Advanced

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

124/163: gnu: python-colorlog: Do not set PYTHONPATH.


From: guix-commits
Subject: 124/163: gnu: python-colorlog: Do not set PYTHONPATH.
Date: Mon, 25 Jan 2021 02:01:51 -0500 (EST)

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

commit 85a168bc89727324d1c480414926e0d0746b8504
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Jan 24 00:30:24 2021 -0500

    gnu: python-colorlog: Do not set PYTHONPATH.
    
    * gnu/packages/python-xyz.scm (python-colorlog)
    [phases]{check}: Do not set PYTHONPATH.
---
 gnu/packages/python-xyz.scm | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 81acc87..fcf454f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -334,12 +334,7 @@ implementation for the Telegram Bot API.")
      `(#:phases (modify-phases %standard-phases
                   (replace 'check
                     (lambda _
-                      ;; Extend PYTHONPATH so the built package will be found.
-                      (setenv "PYTHONPATH"
-                              (string-append (getcwd) "/build/lib:"
-                                             (getenv "PYTHONPATH")))
-                      (invoke "pytest" "-p" "no:logging")
-                      #t)))))
+                      (invoke "pytest" "-p" "no:logging"))))))
     (home-page "https://github.com/borntyping/python-colorlog";)
     (synopsis "Log formatting with colors for python")
     (description "The @code{colorlog.ColoredFormatter} is a formatter for use



reply via email to

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