diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-01-22 23:42:57 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-02-01 11:53:48 -0500 |
commit | 0b701d77e7cd880625147e844cf8f0102f5d27d4 (patch) | |
tree | 8bb8dfb33e60175c36680495fbb87d1d91cfeb65 /gnu | |
parent | e3bc7881f2408576f1bb85c82bce8325a8eb6da8 (diff) | |
download | guix-0b701d77e7cd880625147e844cf8f0102f5d27d4.tar.gz guix-0b701d77e7cd880625147e844cf8f0102f5d27d4.zip |
gnu: python-rpy2: Do not set PYTHONPATH.
* gnu/packages/statistics.scm (python-rpy2)[arguments]: Remove the '#:modules'
argument.
[phases]{check}: Do not set PYTHONPATH.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/statistics.scm | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 541753bb4a..be8d2c6f90 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2017 Alex Kost <alezost@gmail.com> ;;; Copyright © 2018 Alex Branham <alex.branham@gmail.com> ;;; Copyright © 2020 Tim Howes <timhowes@lavabit.com> +;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -5724,25 +5725,15 @@ to any arbitrary string. In this case, it is up to you to set valid values.") "18wpvfaa4c13d44cb4sw88c3c7403xdy5m8h82wfq8fjmcq3cmzn"))))))) (build-system python-build-system) (arguments - '(#:modules ((ice-9 ftw) - (srfi srfi-1) - (srfi srfi-26) - (guix build utils) - (guix build python-build-system)) - #:phases + '(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key outputs inputs #:allow-other-keys) (let ((cwd (getcwd))) - (setenv "TZ" "UTC") - (setenv "PYTHONPATH" - (string-append cwd "/build/" - (find (cut string-prefix? "lib" <>) - (scandir (string-append cwd "/build"))) - ":" - (getenv "PYTHONPATH")))) + (setenv "TZ" "UTC")) ;; test_vector_complex has issues when run in our environment. - (invoke "pytest" "-v" "rpy2/tests/" "-k" "not test_vector_complex")))))) + (invoke "pytest" "-v" "rpy2/tests/" + "-k" "not test_vector_complex")))))) (propagated-inputs `(("python-cffi" ,python-cffi) ("python-six" ,python-six) |