Remove add-imaging-libs option

# Conflicts:
#	setup.py
This commit is contained in:
Aleksandr Karpinskii 2024-09-01 23:24:29 +04:00 committed by Александр Карпинский
parent 039869fe77
commit bd03721816

View File

@ -347,7 +347,6 @@ class pil_build_ext(build_ext):
("disable-platform-guessing", None, "Disable platform guessing on Linux"),
("debug", None, "Debug logging"),
]
+ [("add-imaging-libs=", None, "Add libs to _imaging build")]
)
@staticmethod
@ -358,7 +357,6 @@ class pil_build_ext(build_ext):
self.disable_platform_guessing = self.check_configuration(
"platform-guessing", "disable"
)
self.add_imaging_libs = ""
build_ext.initialize_options(self)
for x in self.feature:
setattr(self, f"disable_{x}", self.check_configuration(x, "disable"))
@ -849,7 +847,6 @@ class pil_build_ext(build_ext):
# core library
libs: list[str | bool | None] = []
libs.extend(self.add_imaging_libs.split())
defs: list[tuple[str, str | None]] = []
if feature.get("tiff"):
libs.append(feature.get("tiff"))