From 728245937325a241e03e0248d9bdf6475f1beb9c Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 31 Mar 2024 11:25:38 +0000 Subject: automatic import of python-torchvision --- 0001-fix-illegal-char.patch | 13 +++++++++++++ python-torchvision.spec | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 0001-fix-illegal-char.patch diff --git a/0001-fix-illegal-char.patch b/0001-fix-illegal-char.patch new file mode 100644 index 0000000..aeb0ac4 --- /dev/null +++ b/0001-fix-illegal-char.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index ce67413f41..7632e8a13d 100644 +--- a/setup.py ++++ b/setup.py +@@ -64,7 +64,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.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/python-torchvision.spec b/python-torchvision.spec index 9205610..75ca150 100644 --- a/python-torchvision.spec +++ b/python-torchvision.spec @@ -11,6 +11,8 @@ License: BSD 3-Clause URL: https://github.com/pytorch/vision Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/vision-%{version}.tar.gz +Patch0: 0001-fix-illegal-char.patch + BuildRequires: cmake BuildRequires: ninja-build -- cgit v1.2.3