From dab85577573d37a7f3632b7e7cd117a253d94252 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 1 Apr 2024 04:27:25 +0000 Subject: automatic import of torchvision --- 001-fixed-illegal-char.patch | 13 +++++++++++++ fix-illegal-char.patch | 11 ----------- torchvision.spec | 4 ++-- 3 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 001-fixed-illegal-char.patch delete mode 100644 fix-illegal-char.patch diff --git a/001-fixed-illegal-char.patch b/001-fixed-illegal-char.patch new file mode 100644 index 0000000..8971923 --- /dev/null +++ b/001-fixed-illegal-char.patch @@ -0,0 +1,13 @@ +diff --git a/vision-0.17.2/setup.py b/vision-0.17.2/setup.py +index ce1cd90..8cc737e 100644 +--- a/vision-0.17.2/setup.py ++++ b/vision-0.17.2/setup.py +@@ -63,7 +63,7 @@ requirements = [ + ] + + # Excluding 8.3.* because of https://github.com/pytorch/vision/issues/4934 +-pillow_ver = " >= 5.3.0, !=8.3.*" ++pillow_ver = " >= 5.3.0, !=8.3.0 != 8.3.1 != 8.3.2 != 8.3.3" + pillow_req = "pillow-simd" if get_dist("pillow-simd") is not None else "pillow" + requirements.append(pillow_req + pillow_ver) + diff --git a/fix-illegal-char.patch b/fix-illegal-char.patch deleted file mode 100644 index 5f31566..0000000 --- a/fix-illegal-char.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- setup.py.orig 2024-04-01 09:17:40.063559466 +0800 -+++ setup.py 2024-04-01 09:20:04.243166454 +0800 -@@ -63,7 +63,7 @@ - ] - - # Excluding 8.3.* because of https://github.com/pytorch/vision/issues/4934 --pillow_ver = " >= 5.3.0, !=8.3.*" -+pillow_ver = " >= 5.3.0, !=8.3.0 !=8.3.1 !=8.3.2 !=8.3.3" - pillow_req = "pillow-simd" if get_dist("pillow-simd") is not None else "pillow" - requirements.append(pillow_req + pillow_ver) - diff --git a/torchvision.spec b/torchvision.spec index c8bb8fb..bfa8129 100644 --- a/torchvision.spec +++ b/torchvision.spec @@ -11,7 +11,7 @@ License: BSD-3 URL: https://pytorch.org/vision Source0: https://github.com/pytorch/vision/archive/refs/tags/v%{version}.tar.gz -Patch0: fix-illegal-char.patch +Patch0: 001-fixed-illegal-char.patch BuildArch: noarch @@ -40,7 +40,7 @@ description for helping using the torchvision lib %prep %autosetup -p1 -n vision-%{version} rm -rf %{pypi_name}.egg-info -%patch0 +%patch %build -- cgit v1.2.3