diff --git a/misc/py-torchvision/Makefile b/misc/py-torchvision/Makefile index b85fd64c9d5d..af2ffb62594c 100644 --- a/misc/py-torchvision/Makefile +++ b/misc/py-torchvision/Makefile @@ -1,44 +1,43 @@ PORTNAME= torchvision DISTVERSIONPREFIX= v -DISTVERSION= 0.23.0 -PORTREVISION= 2 +DISTVERSION= 0.25.0 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 \ https://github.com/pytorch/vision LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE 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_SETUPTOOLS} \ ${PY_DEPENDS} \ ${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= 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 GH_PROJECT= vision MAKE_ENV= TORCHVISION_INCLUDE=${LOCALBASE}/include # workaround for build failure suggested here: https://github.com/pytorch/vision/issues/8397#issuecomment-2168351425 post-install: # strip binaries @${STRIP_CMD} \ ${STAGEDIR}${PYTHON_SITELIBDIR}/torchvision/_C.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/torchvision/image.so .include diff --git a/misc/py-torchvision/distinfo b/misc/py-torchvision/distinfo index b2195d2a383c..61818cc5882c 100644 --- a/misc/py-torchvision/distinfo +++ b/misc/py-torchvision/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1755592258 -SHA256 (pytorch-vision-v0.23.0_GH0.tar.gz) = db5a91569e5eb4a3b02e9eaad6080335f5ae3824890a697f5618541999f04027 -SIZE (pytorch-vision-v0.23.0_GH0.tar.gz) = 14496885 +TIMESTAMP = 1769288114 +SHA256 (pytorch-vision-v0.25.0_GH0.tar.gz) = a7ac1b3ab489d71f6e27edfad1e27616e4b8a9b1517e60fce4a950600d3510e8 +SIZE (pytorch-vision-v0.25.0_GH0.tar.gz) = 14589841