mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
gnu: python-pytorch: Use ADD-INSTALLED-PYTHONPATH.
* gnu/packages/machine-learning.scm (python-pytorch)[arguments]: Do not set PYTHONPATH; use add-installed-pythonpath instead.
This commit is contained in:
parent
5f6558792f
commit
1e13f73605
1 changed files with 3 additions and 6 deletions
|
@ -2811,13 +2811,10 @@ (define-public python-pytorch
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue