mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 22:16:32 +01:00
gnu: python-torchvision: Update to 0.19.0.
* gnu/packages/machine-learning.scm (python-torchvision): Update to 0.19.0. [arguments]: Add 'setenv' phase for finding libjpeg-turbo. [inputs]: Add ffmpeg.
This commit is contained in:
parent
b44b2e346c
commit
a9e4ce6a58
1 changed files with 16 additions and 5 deletions
|
@ -5330,7 +5330,7 @@ (define-public python-torchmetrics
|
|||
(define-public python-torchvision
|
||||
(package
|
||||
(name "python-torchvision")
|
||||
(version "0.17.1")
|
||||
(version "0.19.0")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
|
@ -5340,7 +5340,7 @@ (define-public python-torchvision
|
|||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"094jz0ryzh0yjxf687r61r482fdh3bax8ix2csghraps0z1sns1b"))
|
||||
"15zyq2k4x9yapx7qfghhslznz1mwybhf086pirsr98c4l891sp1r"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
'(begin
|
||||
|
@ -5348,10 +5348,21 @@ (define-public python-torchvision
|
|||
(delete-file-recursively "ios")))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list #:tests? #false)) ;the test suite is expensive and there is no easy
|
||||
;way to subset it.
|
||||
(list
|
||||
;; The test suite is expensive and there is no easy way to subset it.
|
||||
#:tests? #f
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'setenv
|
||||
(lambda _
|
||||
(let ((jpegdir #$(this-package-input "libjpeg-turbo")))
|
||||
(setenv "TORCHVISION_INCLUDE"
|
||||
(string-append jpegdir "/include/"))
|
||||
(setenv "TORCHVISION_LIBRARY"
|
||||
(string-append jpegdir "/lib/"))))))))
|
||||
(inputs
|
||||
(list libpng
|
||||
(list ffmpeg
|
||||
libpng
|
||||
libjpeg-turbo))
|
||||
(propagated-inputs
|
||||
(list python-numpy
|
||||
|
|
Loading…
Reference in a new issue