[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/11: gnu: python-numba: Run tests conditionally.
From: |
guix-commits |
Subject: |
10/11: gnu: python-numba: Run tests conditionally. |
Date: |
Sat, 20 Nov 2021 06:05:02 -0500 (EST) |
rekado pushed a commit to branch core-updates-frozen
in repository guix.
commit bcf7d0bc7babb244efb75d69313ea8f010f59bda
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sat Nov 20 01:01:40 2021 +0100
gnu: python-numba: Run tests conditionally.
* gnu/packages/python-xyz.scm (python-numba)[arguments]: Respect TESTS?
argument.
---
gnu/packages/python-xyz.scm | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5ba9b6d..43cee47 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22008,14 +22008,15 @@ validation testing and application logic.")
(setenv "NUMBA_DISABLE_HSA" "1")
(setenv "NUMBA_DISABLE_CUDA" "1")))
(replace 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- ;; Something is wrong with the PYTHONPATH when running the
- ;; tests from the build directory, as it complains about not being
- ;; able to import certain modules.
- (with-directory-excursion "/tmp"
- (setenv "HOME" (getcwd))
- (invoke "python3" "-m" "numba.runtests" "-v" "-m")))))))
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ ;; Something is wrong with the PYTHONPATH when running the
+ ;; tests from the build directory, as it complains about not
being
+ ;; able to import certain modules.
+ (with-directory-excursion "/tmp"
+ (setenv "HOME" (getcwd))
+ (invoke "python3" "-m" "numba.runtests" "-v" "-m"))))))))
(propagated-inputs
`(("python-llvmlite" ,python-llvmlite)
("python-numpy" ,python-numpy)
- branch core-updates-frozen updated (2db788f -> 83580b9), guix-commits, 2021/11/20
- 02/11: gnu: python-pytorch: Use ADD-INSTALLED-PYTHONPATH., guix-commits, 2021/11/20
- 03/11: gnu: python-pytorch: Add missing input., guix-commits, 2021/11/20
- 04/11: gnu: python-pytorch: Warn of missing test inputs., guix-commits, 2021/11/20
- 01/11: gnu: opendht: Use GUIX_PYTHONPATH., guix-commits, 2021/11/20
- 07/11: gnu: repo2docker: Use GUIX_PYTHONPATH., guix-commits, 2021/11/20
- 05/11: gnu: python-llvmlite: Remove trailing #T., guix-commits, 2021/11/20
- 06/11: gnu: python-llvmlite: Update to 0.37.0., guix-commits, 2021/11/20
- 08/11: gnu: Add python-numpy-1.20., guix-commits, 2021/11/20
- 09/11: gnu: python-numba: Remove trailing #T., guix-commits, 2021/11/20
- 10/11: gnu: python-numba: Run tests conditionally.,
guix-commits <=
- 11/11: gnu: python-numba: Update to 0.54.1., guix-commits, 2021/11/20