diff --git a/build_docs.py b/build_docs.py index 1110335..f6da553 100755 --- a/build_docs.py +++ b/build_docs.py @@ -746,6 +746,10 @@ def build(self) -> None: (self.checkout / "Doc" / "Makefile").write_text(text, encoding="utf-8") self.setup_indexsidebar() + if self.build_meta.version_tuple < (3, 10): + # The Makefile is broken, and the fix, + # python/cpython#145571 didn't make it into 3.9 in time + (self.checkout / "Doc" / "dist").mkdir(exist_ok=True) run_with_logging(( "make", "-C",