Archived
1
0
Fork 0

gnu: python-fenics-dijitso: Do not alter PYTHONPATH.

* gnu/packages/simulation.scm (python-fenics-dijitso)
[phases]{check}: Do not alter PYTHONPATH.
This commit is contained in:
Maxim Cournoyer 2021-01-23 22:59:12 -05:00
parent 3f78a14ea0
commit 85b42f04a3
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

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