summaryrefslogtreecommitdiff
path: root/0001-fix-error-in-build.patch
blob: 786fed59dee81dde0bbb6b5e2ae1aa92baca8c46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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