Merge pull request #8469 from radarhere/disable

Fixed disabling a feature during install
This commit is contained in:
mergify[bot] 2024-10-16 11:38:07 +00:00 committed by GitHub
commit 1c11d4581c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -389,7 +389,7 @@ class pil_build_ext(build_ext):
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}"):