mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
misc/py-torchvision: update 0.19.1 → 0.20.1
This commit is contained in:
parent
cba1c7411d
commit
db8d31f33c
3 changed files with 27 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
13
misc/py-torchvision/files/patch-setup.py
Normal file
13
misc/py-torchvision/files/patch-setup.py
Normal file
|
@ -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
|
||||
|
Loading…
Add table
Reference in a new issue