summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--torchvision.spec1
-rw-r--r--tst.patch12
2 files changed, 13 insertions, 0 deletions
diff --git a/torchvision.spec b/torchvision.spec
index 0359c91..f7a3c43 100644
--- a/torchvision.spec
+++ b/torchvision.spec
@@ -5,6 +5,7 @@ Release: 1
License: BSD
Group: Development/Libraries
Source0: https://github.com/pytorch/vision/archive/refs/tags/v0.16.2.tar.gz
+Patch0: tst.patch
URL: https://github.com/pytorch/vision
BuildRoot: %{_tmppath}/%{name}-buildroot
diff --git a/tst.patch b/tst.patch
new file mode 100644
index 0000000..e4136dc
--- /dev/null
+++ b/tst.patch
@@ -0,0 +1,12 @@
+diff --git a/setup.py b/setup.py
+index ce67413..6b376c2 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.0, !=8.3.1, !=8.3.2"
+ pillow_req = "pillow-simd" if get_dist("pillow-simd") is not None else "pillow"
+ requirements.append(pillow_req + pillow_ver) \ No newline at end of file