File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -630,7 +630,7 @@ def run(self, http: urllib3.PoolManager) -> bool:
630
630
@property
631
631
def checkout (self ) -> Path :
632
632
"""Path to CPython git clone."""
633
- return self .build_root / "cpython"
633
+ return self .build_root / _checkout_name ( self . select_output )
634
634
635
635
def clone_translation (self ):
636
636
self .translation_repo .update ()
@@ -1129,7 +1129,8 @@ def build_docs(args) -> bool:
1129
1129
del args .languages
1130
1130
all_built_successfully = True
1131
1131
cpython_repo = Repository (
1132
- "https://github.com/python/cpython.git" , args .build_root / "cpython"
1132
+ "https://github.com/python/cpython.git" ,
1133
+ args .build_root / _checkout_name (args .select_output ),
1133
1134
)
1134
1135
while todo :
1135
1136
version , language = todo .pop ()
@@ -1184,6 +1185,12 @@ def build_docs(args) -> bool:
1184
1185
return all_built_successfully
1185
1186
1186
1187
1188
+ def _checkout_name (select_output : str | None ) -> str :
1189
+ if select_output is not None :
1190
+ return f"cpython-{ select_output } "
1191
+ return "cpython"
1192
+
1193
+
1187
1194
def main ():
1188
1195
"""Script entry point."""
1189
1196
args = parse_args ()
You can’t perform that action at this time.
0 commit comments