From 1dbc5351e668061dfedb26f353b5cf21d8a4d88f Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Thu, 2 Apr 2026 19:36:06 +0200 Subject: [PATCH] Restrict setuptools to <82 for 3.8-3.10 --- build_docs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_docs.py b/build_docs.py index 1110335..f1bfa29 100755 --- a/build_docs.py +++ b/build_docs.py @@ -209,7 +209,8 @@ def requirements(self) -> list[str]: return dependencies if self.as_tuple() >= (3, 8): # Restore the imghdr module for Python 3.8-3.10. - return dependencies + ["standard-imghdr"] + # Use setuptools with pkg_resources + return dependencies + ["standard-imghdr", "setuptools<82"] # Requirements/constraints for Python 3.7 and older, pre-requirements.txt reqs = [