gnu: python-pytorch: Use ADD-INSTALLED-PYTHONPATH.
* gnu/packages/machine-learning.scm (python-pytorch)[arguments]: Do not set PYTHONPATH; use add-installed-pythonpath instead.master
parent
5f6558792f
commit
1e13f73605
|
@ -2811,13 +2811,10 @@ TensorFlow.js, PyTorch, and MediaPipe.")
|
||||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
||||||
;; Run the test suite following the instructions in
|
;; Run the test suite following the instructions in
|
||||||
;; 'CONTRIBUTING.md'. XXX: Unfortunately this doesn't
|
;; 'CONTRIBUTING.md'. XXX: Unfortunately this doesn't
|
||||||
;; work, unless you set PYTHONPATH presumably.
|
;; work, unless you set GUIX_PYTHONPATH presumably.
|
||||||
(when tests?
|
(when tests?
|
||||||
(let ((python-site (site-packages inputs outputs)))
|
(add-installed-pythonpath inputs outputs)
|
||||||
(setenv "PYTHONPATH"
|
(invoke "python" "test/run_test.py"))))
|
||||||
(string-append python-site ":"
|
|
||||||
(getenv "PYTHONPATH")))
|
|
||||||
(invoke "python" "test/run_test.py")))))
|
|
||||||
(add-after 'install 'remove-test-executables
|
(add-after 'install 'remove-test-executables
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
;; Remove test executables, but keep other executables
|
;; Remove test executables, but keep other executables
|
||||||
|
|
Reference in New Issue