Skip to content

Commit 773646d

Browse files
Create Doc/dist/ before make for versions < 3.10
1 parent 2323166 commit 773646d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build_docs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,10 @@ def build(self) -> None:
746746
(self.checkout / "Doc" / "Makefile").write_text(text, encoding="utf-8")
747747

748748
self.setup_indexsidebar()
749+
if self.build_meta.version_tuple < (3, 10):
750+
# The Makefile is broken, and the fix,
751+
# python/cpython#145571 didn't make it into 3.9 in time
752+
(self.checkout / "Doc" / "dist").mkdir(exist_ok=True)
749753
run_with_logging((
750754
"make",
751755
"-C",

0 commit comments

Comments
 (0)