Skip to content

Commit 1dbc535

Browse files
Restrict setuptools to <82 for 3.8-3.10
1 parent 2323166 commit 1dbc535

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build_docs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ def requirements(self) -> list[str]:
209209
return dependencies
210210
if self.as_tuple() >= (3, 8):
211211
# Restore the imghdr module for Python 3.8-3.10.
212-
return dependencies + ["standard-imghdr"]
212+
# Use setuptools with pkg_resources
213+
return dependencies + ["standard-imghdr", "setuptools<82"]
213214

214215
# Requirements/constraints for Python 3.7 and older, pre-requirements.txt
215216
reqs = [

0 commit comments

Comments
 (0)