Skip to content

Commit e3299ae

Browse files
Create Doc/dist/ before running make for versions < 3.10 (#334)
1 parent 96fd7b4 commit e3299ae

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
@@ -747,6 +747,10 @@ def build(self) -> None:
747747
(self.checkout / "Doc" / "Makefile").write_text(text, encoding="utf-8")
748748

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

0 commit comments

Comments
 (0)