https://bugs.gentoo.org/947136
https://github.com/python-pillow/Pillow/issues/8468
https://github.com/python-pillow/Pillow/pull/8469

From 7c194b54ef3e7a04c5b669353622687075b5ebb4 Mon Sep 17 00:00:00 2001
From: Andrew Murray <radarhere@users.noreply.github.com>
Date: Wed, 16 Oct 2024 21:37:14 +1100
Subject: [PATCH] Fixed disabling a feature

---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 60707083f6e..def3417845d 100644
--- a/setup.py
+++ b/setup.py
@@ -389,7 +389,7 @@ def finalize_options(self) -> None:
                     pass
         for x in self.feature:
             if getattr(self, f"disable_{x}"):
-                setattr(self.feature, x, False)
+                self.feature.set(x, False)
                 self.feature.required.discard(x)
                 _dbg("Disabling %s", x)
                 if getattr(self, f"enable_{x}"):
