Skip to content

Commit 6b6ae37

Browse files
committed
windows: pass downloads entry name into build_cpython()
In preparation for supporting Python 3.8.
1 parent 10e684c commit 6b6ae37

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cpython-windows/build.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@ def find_additional_dependencies(project: pathlib.Path):
14661466
return res
14671467

14681468

1469-
def build_cpython(arch: str, profile):
1469+
def build_cpython(python_entry_name: str, arch: str, profile):
14701470
static = profile == "static"
14711471
pgo = "-pgo" in profile
14721472

@@ -1484,8 +1484,8 @@ def build_cpython(arch: str, profile):
14841484
xz_archive = download_entry("xz", BUILD)
14851485
zlib_archive = download_entry("zlib", BUILD)
14861486

1487-
python_archive = download_entry("cpython-3.7", BUILD)
1488-
entry = DOWNLOADS["cpython-3.7"]
1487+
python_archive = download_entry(python_entry_name, BUILD)
1488+
entry = DOWNLOADS[python_entry_name]
14891489

14901490
python_version = entry["version"]
14911491

@@ -1877,7 +1877,7 @@ def main():
18771877
build_openssl(perl_path, arch, profile=args.profile)
18781878

18791879
LOG_PREFIX[0] = "cpython"
1880-
tar_path = build_cpython(arch, profile=args.profile)
1880+
tar_path = build_cpython("cpython-3.7", arch, profile=args.profile)
18811881

18821882
compress_python_archive(
18831883
tar_path, DIST, "%s-%s" % (tar_path.stem, now.strftime("%Y%m%dT%H%M")),

0 commit comments

Comments
 (0)