[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/11: gnu: python-pytorch: Use ADD-INSTALLED-PYTHONPATH.
From: |
guix-commits |
Subject: |
02/11: gnu: python-pytorch: Use ADD-INSTALLED-PYTHONPATH. |
Date: |
Sat, 20 Nov 2021 06:04:59 -0500 (EST) |
rekado pushed a commit to branch core-updates-frozen
in repository guix.
commit 1e13f736057046232943ffde31a1b547f29152ea
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Nov 19 17:11:04 2021 +0100
gnu: python-pytorch: Use ADD-INSTALLED-PYTHONPATH.
* gnu/packages/machine-learning.scm (python-pytorch)[arguments]: Do not set
PYTHONPATH; use add-installed-pythonpath instead.
---
gnu/packages/machine-learning.scm | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index 324d22a..ed79044 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -2811,13 +2811,10 @@ TensorFlow.js, PyTorch, and MediaPipe.")
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
;; Run the test suite following the instructions in
;; 'CONTRIBUTING.md'. XXX: Unfortunately this doesn't
- ;; work, unless you set PYTHONPATH presumably.
+ ;; work, unless you set GUIX_PYTHONPATH presumably.
(when tests?
- (let ((python-site (site-packages inputs outputs)))
- (setenv "PYTHONPATH"
- (string-append python-site ":"
- (getenv "PYTHONPATH")))
- (invoke "python" "test/run_test.py")))))
+ (add-installed-pythonpath inputs outputs)
+ (invoke "python" "test/run_test.py"))))
(add-after 'install 'remove-test-executables
(lambda* (#:key inputs outputs #:allow-other-keys)
;; Remove test executables, but keep other executables
- branch core-updates-frozen updated (2db788f -> 83580b9), guix-commits, 2021/11/20
- 02/11: gnu: python-pytorch: Use ADD-INSTALLED-PYTHONPATH.,
guix-commits <=
- 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, 2021/11/20
- 11/11: gnu: python-numba: Update to 0.54.1., guix-commits, 2021/11/20