From 16b70b809969761e116b1d5f53724267f8c70bc4 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Fri, 6 Dec 2024 08:20:44 -0600 Subject: [PATCH] Copy the Python 3.13t executable to the canonical name instead of renaming (#406) --- cpython-windows/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpython-windows/build.py b/cpython-windows/build.py index 9a5bd856..217c1bba 100644 --- a/cpython-windows/build.py +++ b/cpython-windows/build.py @@ -1533,7 +1533,7 @@ def build_cpython( # free-threading is enabled the name is `python3.13t.exe`. canonical_python_exe = install_dir / "python.exe" if not canonical_python_exe.exists(): - os.rename( + shutil.copy2( install_dir / python_exe, canonical_python_exe, )