Fixed disabling a feature

This commit is contained in:
Andrew Murray 2024-10-16 21:37:14 +11:00
parent 96fb0e63ea
commit 7c194b54ef

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}"):