summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-04-15 17:09:11 +0000
committerCoprDistGit <infra@openeuler.org>2024-04-15 17:09:11 +0000
commit8da5edd2e092e03d15f6e0a6e3de73bd973df22d (patch)
tree09c882f5d5d38a05fe4e91a0421a69d4683e671c
parent840ed09ce73d1d2a617be61fc2014162425760b6 (diff)
automatic import of torchvision
-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