diff --git a/misc/py-torchvision/Makefile b/misc/py-torchvision/Makefile index 973a4e17bb9d..3b7675ba91cf 100644 --- a/misc/py-torchvision/Makefile +++ b/misc/py-torchvision/Makefile @@ -1,36 +1,37 @@ PORTNAME= torchvision DISTVERSIONPREFIX= v -DISTVERSION= 0.18.1 +DISTVERSION= 0.19.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 LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libpng16.so:graphics/png 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} +BUILD_DEPENDS= ${PY_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 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 01d231d98536..5d53d88407f8 100644 --- a/misc/py-torchvision/distinfo +++ b/misc/py-torchvision/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1718852076 -SHA256 (pytorch-vision-v0.18.1_GH0.tar.gz) = 347d472a9ceecc44e0bee1eda140d63cfaffc74a54ec07d4b98da7698ce75516 -SIZE (pytorch-vision-v0.18.1_GH0.tar.gz) = 9485686 +TIMESTAMP = 1726457299 +SHA256 (pytorch-vision-v0.19.1_GH0.tar.gz) = 083e75c467285595ec3eb3c7aa8493c19e53d7eb42f13046fb56a07c8897e5a8 +SIZE (pytorch-vision-v0.19.1_GH0.tar.gz) = 13135101