File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1662,6 +1662,15 @@ def build_cpython(
1662
1662
os .environ ,
1663
1663
)
1664
1664
1665
+ # Create a `python.exe` when using an alternative name, e.g., when
1666
+ # freethreading is enabled the name is `python3.13t.exe`.
1667
+ canonical_python_exe = install_dir / "python.exe"
1668
+ if canonical_python_exe .exists ():
1669
+ shutil .copyfile (
1670
+ python_exe ,
1671
+ canonical_python_exe ,
1672
+ )
1673
+
1665
1674
# We install pip by using pip to install itself. This leverages a feature
1666
1675
# where Python can automatically recognize wheel/zip files on sys.path and
1667
1676
# import their contents. According to
@@ -1811,7 +1820,6 @@ def build_cpython(
1811
1820
}
1812
1821
1813
1822
# Collect information from running Python script.
1814
- python_exe = out_dir / "python" / "install" / python_exe
1815
1823
metadata_path = td / "metadata.json"
1816
1824
env = dict (os .environ )
1817
1825
env ["ROOT" ] = str (out_dir / "python" )
You can’t perform that action at this time.
0 commit comments