git: db8d31f33c8d - main - misc/py-torchvision: update 0.19.1 → 0.20.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Nov 2024 09:28:09 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=db8d31f33c8d2db87d4051502b99eaa3af3717eb commit db8d31f33c8d2db87d4051502b99eaa3af3717eb Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-11-07 09:26:00 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-11-07 09:27:56 +0000 misc/py-torchvision: update 0.19.1 → 0.20.1 --- misc/py-torchvision/Makefile | 17 +++++++++++------ misc/py-torchvision/distinfo | 6 +++--- misc/py-torchvision/files/patch-setup.py | 13 +++++++++++++ 3 files changed, 27 insertions(+), 9 deletions(-) diff --git a/misc/py-torchvision/Makefile b/misc/py-torchvision/Makefile index 3b7675ba91cf..393f54586782 100644 --- a/misc/py-torchvision/Makefile +++ b/misc/py-torchvision/Makefile @@ -1,27 +1,32 @@ PORTNAME= torchvision DISTVERSIONPREFIX= v -DISTVERSION= 0.19.1 +DISTVERSION= 0.20.1 CATEGORIES= misc # machine-learning PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= PyTorch: Datasets, transforms and models specific to computer vision -WWW= https://pytorch.org/vision/stable/index.html +WWW= https://pytorch.org/vision/stable/index.html \ + https://github.com/pytorch/vision LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= libpng16.so:graphics/png +LIB_DEPENDS= libpng16.so:graphics/png \ + libwebp.so:graphics/webp PY_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} PY_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pillow>=5.3.0:graphics/py-pillow@${PY_FLAVOR} # image backend BUILD_DEPENDS= ${PY_DEPENDS} \ - ninja:devel/ninja # build uses the C compiler for C++ files w/out ninja, and fails + ${PYTHON_PKGNAMEPREFIX}fsspec>0:filesystems/py-fsspec@${PY_FLAVOR} \ + pybind11>0:devel/pybind11 \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +BUILD_DEPENDS+= ninja:devel/ninja # build uses the C compiler for C++ files w/out ninja, and fails RUN_DEPENDS= ${PY_DEPENDS} -USES= jpeg python -USE_PYTHON= distutils autoplist pytest # tests run in a very high memory ; in 0.17.1 tests fail to run, see https://github.com/pytorch/vision/issues/8278 +USES= compiler:c++17-lang jpeg python +USE_PYTHON= pep517 autoplist pytest # tests run in a very high memory ; in 0.17.1 tests fail to run, see https://github.com/pytorch/vision/issues/8278 USE_GITHUB= yes GH_ACCOUNT= pytorch diff --git a/misc/py-torchvision/distinfo b/misc/py-torchvision/distinfo index 5d53d88407f8..116e2c7c3703 100644 --- a/misc/py-torchvision/distinfo +++ b/misc/py-torchvision/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1726457299 -SHA256 (pytorch-vision-v0.19.1_GH0.tar.gz) = 083e75c467285595ec3eb3c7aa8493c19e53d7eb42f13046fb56a07c8897e5a8 -SIZE (pytorch-vision-v0.19.1_GH0.tar.gz) = 13135101 +TIMESTAMP = 1730948897 +SHA256 (pytorch-vision-v0.20.1_GH0.tar.gz) = 7e08c7f56e2c89859310e53d898f72bccc4987cd83e08cfd6303513da15a9e71 +SIZE (pytorch-vision-v0.20.1_GH0.tar.gz) = 13149651 diff --git a/misc/py-torchvision/files/patch-setup.py b/misc/py-torchvision/files/patch-setup.py new file mode 100644 index 000000000000..e31a70427aba --- /dev/null +++ b/misc/py-torchvision/files/patch-setup.py @@ -0,0 +1,13 @@ +- https://github.com/pytorch/vision/issues/8715 + +--- setup.py.orig 2024-11-07 08:59:48 UTC ++++ setup.py +@@ -228,7 +228,7 @@ def find_libpng(): + + library_dir = str(pngfix_dir / "lib") + include_dir = str(pngfix_dir / "include/libpng16") +- library = "libpng" ++ library = "png" + + return True, include_dir, library_dir, library +