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 = [