From 773646d8ccacc233a4b612ac60089bc01b2a331f Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Thu, 2 Apr 2026 20:11:58 +0200 Subject: [PATCH] Create `Doc/dist/` before `make` for versions < 3.10 --- build_docs.py | 4 ++++ 1 file changed, 4 insertions(+) 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",