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

commit 1fcc60e048bbc1dfebd330bd8ae0dcc5b65c6304
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Wed Jan 27 20:45:11 2021 -0500

    gnu: python-cloudpickle: Do not alter PYTHONPATH.
    
    * gnu/packages/python.scm (python-cloudpickle)
    [phases]{do-not-override-PYTHONPATH}: Delete phase.  Remove trailing #t.
---
 gnu/packages/python-xyz.scm | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4f746cc..256ef40 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19262,20 +19262,11 @@ pure-Python.")
     (build-system python-build-system)
     (arguments
      '(#:phases (modify-phases %standard-phases
-                  (add-before 'check 'do-not-override-PYTHONPATH
-                    (lambda _
-                      ;; Append to PYTHONPATH instead of overriding it so
-                      ;; that dependencies from Guix can be found.
-                      (substitute* "tests/testutils.py"
-                        (("env\\['PYTHONPATH'\\] = pythonpath")
-                         "env['PYTHONPATH'] += os.pathsep + pythonpath"))
-                      #t))
                   (replace 'check
                     (lambda* (#:key tests? #:allow-other-keys)
                       (if tests?
                           (invoke "pytest" "-s" "-vv")
-                          (format #t "test suite not run~%"))
-                      #t)))))
+                          (format #t "test suite not run~%")))))))
     (native-inputs
      `(;; For tests.
        ("python-psutil" ,python-psutil)

Reply via email to