diff --git a/setup.py b/setup.py index c9f4340a8c5..5b7243d1995 100644 --- a/setup.py +++ b/setup.py @@ -942,8 +942,6 @@ def build_extensions(self) -> None: if feature.get("avif"): libs = [feature.get("avif")] - if sys.platform == "win32": - libs.extend(["ntdll", "userenv", "ws2_32", "bcrypt"]) self._update_extension("PIL._avif", libs) else: self._remove_extension("PIL._avif")