summaryrefslogtreecommitdiff
path: root/0001-fix-error-in-build.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-fix-error-in-build.patch')
-rw-r--r--0001-fix-error-in-build.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/0001-fix-error-in-build.patch b/0001-fix-error-in-build.patch
new file mode 100644
index 0000000..786fed5
--- /dev/null
+++ b/0001-fix-error-in-build.patch
@@ -0,0 +1,32 @@
+From 94c517ab4a3c5a6331b0cd54c4c5489bda6f22c8 Mon Sep 17 00:00:00 2001
+From: binsz <274620705z@gmail.com>
+Date: Sun, 28 Jan 2024 17:13:33 +0800
+Subject: [PATCH] Specify Excluded Pillow Versions
+
+Signed-off-by: binsz <274620705z@gmail.com>
+
+This commit explicitly specifies the versions of Pillow that should
+be excluded due to the issue described in https://github.com/pytorch/vision/issues/4934.
+Previously, all 8.3.* versions were excluded, but this commit updates the exclusion to specifically list versions 8.3.0, 8.3.1, and 8.3.2.
+This change fix the error in build `Illegal char '*' (0x2a) in: 8.3.*`
+
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+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)
+
+--
+2.41.0
+