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

commit e0039087e3b1574200299ca5cd838bce5a108937
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Sat Jan 23 22:59:12 2021 -0500

    gnu: python-fenics-dijitso: Do not alter PYTHONPATH.
    
    * gnu/packages/simulation.scm (python-fenics-dijitso)
    [phases]{check}: Do not alter PYTHONPATH.
---
 gnu/packages/simulation.scm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 45efd5c..4a216d0 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2017, 2018, 2019, 2020 Paul Garlick 
<[email protected]>
+;;; Copyright © 2021 Maxim Cournoyer <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -267,16 +268,13 @@ problems for efficient solution on parallel systems.")
          (replace 'check
            (lambda _
              (setenv "HOME" "/tmp")
-             (setenv "PYTHONPATH"
-                     (string-append (getcwd) ":" (getenv "PYTHONPATH")))
              (with-directory-excursion "test"
                ;; Disable parallel tests to avoid race condition.  See
                ;; https://github.com/pytest-dev/pytest-cov/issues/237.
                (substitute* "runtests.sh"
                  (("for p in 1 4 8 16; do")
                   "for p in 1; do"))
-               (invoke "./runtests.sh"))
-             #t)))))
+               (invoke "./runtests.sh")))))))
     (home-page "https://bitbucket.org/fenics-project/dijitso/";)
     (synopsis "Distributed just-in-time building of shared libraries")
     (description

Reply via email to