Skip to content

Commit 5d6e039

Browse files
authored
Enforce PIL < 11.3 (#9134)
1 parent 080bf2f commit 5d6e039

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ def get_dist(pkgname):
111111
]
112112

113113
# Excluding 8.3.* because of https://github.com/pytorch/vision/issues/4934
114-
pillow_ver = " >= 5.3.0, !=8.3.*"
114+
# TODO remove <11.3 bound and address corresponding deprecation warnings
115+
pillow_ver = " >= 5.3.0, !=8.3.*, <11.3"
115116
pillow_req = "pillow-simd" if get_dist("pillow-simd") is not None else "pillow"
116117
requirements.append(pillow_req + pillow_ver)
117118

0 commit comments

Comments
 (0)