Skip to content

Commit 9bc5961

Browse files
committed
windows: change Python archive to have target triple
To match the naming convention with UNIX.
1 parent aa5e4ca commit 9bc5961

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cpython-windows/build.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,12 @@ def find_additional_dependencies(project: pathlib.Path):
15981598

15991599

16001600
def build_cpython(
1601-
python_entry_name: str, arch: str, profile, openssl_archive, libffi_archive=None
1601+
python_entry_name: str,
1602+
target_triple: str,
1603+
arch: str,
1604+
profile,
1605+
openssl_archive,
1606+
libffi_archive=None,
16021607
):
16031608
static = profile == "static"
16041609
pgo = "-pgo" in profile
@@ -1967,7 +1972,7 @@ def build_cpython(
19671972
json.dump(python_info, fh, sort_keys=True, indent=4)
19681973

19691974
dest_path = BUILD / (
1970-
"cpython-%s-windows-%s-%s.tar" % (entry["version"], arch, profile,)
1975+
"cpython-%s-%s-%s.tar" % (entry["version"], target_triple, profile,)
19711976
)
19721977

19731978
with dest_path.open("wb") as fh:
@@ -2044,6 +2049,7 @@ def main():
20442049
LOG_PREFIX[0] = "cpython"
20452050
tar_path = build_cpython(
20462051
args.python,
2052+
target_triple,
20472053
arch,
20482054
profile=args.profile,
20492055
openssl_archive=openssl_archive,

0 commit comments

Comments
 (0)