Skip to content

Commit 6067937

Browse files
committed
Add missing CPython clone code
1 parent 828ea97 commit 6067937

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

generate.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
# "requests",
77
# ]
88
# ///
9+
import subprocess
910
from datetime import datetime, timezone
11+
from pathlib import Path
1012
from tempfile import TemporaryDirectory
1113

14+
from git import Repo
1215
from jinja2 import Template
1316

1417
import completion
@@ -18,6 +21,9 @@
1821
generation_time = datetime.now(timezone.utc)
1922

2023
with TemporaryDirectory() as clones_dir:
24+
Repo.clone_from(f'https://github.com/python/cpython.git', Path(clones_dir, 'cpython'), depth=1, branch='3.13')
25+
subprocess.run(['make', '-C', Path(clones_dir, 'cpython/Doc'), 'venv'], check=True)
26+
subprocess.run(['make', '-C', Path(clones_dir, 'cpython/Doc'), 'gettext'], check=True)
2127
for language in ('es', 'fr', 'id', 'it', 'ja', 'ko', 'pl', 'pt-br', 'tr', 'uk', 'zh-cn', 'zh-tw'):
2228
completion_number = completion.get_completion(clones_dir, language)
2329
visitors_number = visitors.get_number_of_visitors(language)

0 commit comments

Comments
 (0)