This commit is contained in:
nulano 2020-11-25 16:29:43 +00:00 committed by Andrew Murray
parent be0d0a3a48
commit 834c2e5e5d

View File

@ -373,11 +373,11 @@ class pil_build_ext(build_ext):
self.feature.required.add("freetype") self.feature.required.add("freetype")
for x in ("raqm", "fribidi"): for x in ("raqm", "fribidi"):
if getattr(self, f"system_{x}"): if getattr(self, f"system_{x}"):
if getattr(self, f"disable_raqm"): if getattr(self, "disable_raqm"):
raise ValueError( raise ValueError(
f"Conflicting options: --system-{x} and --disable-raqm" f"Conflicting options: --system-{x} and --disable-raqm"
) )
if x == "fribidi" and getattr(self, f"system_raqm"): if x == "fribidi" and getattr(self, "system_raqm"):
raise ValueError( raise ValueError(
f"Conflicting options: --system-{x} and --system-raqm" f"Conflicting options: --system-{x} and --system-raqm"
) )