File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1759,6 +1759,15 @@ def build_cpython(
1759
1759
log ("copying %s to %s" % (source , dest ))
1760
1760
shutil .copyfile (source , dest )
1761
1761
1762
+ # Rename to `python.exe` when an alternative executable is built, e.g., when
1763
+ # free-threading is enabled the name is `python3.13t.exe`.
1764
+ canonical_python_exe = install_dir / "python.exe"
1765
+ if not canonical_python_exe .exists ():
1766
+ os .rename (
1767
+ install_dir / python_exe ,
1768
+ canonical_python_exe ,
1769
+ )
1770
+
1762
1771
# CPython 3.13 removed `run_tests.py`, we provide a compatibility script
1763
1772
# for now.
1764
1773
if meets_python_minimum_version (python_version , "3.13" ):
@@ -1811,13 +1820,12 @@ 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" )
1818
1826
subprocess .run (
1819
1827
[
1820
- str (python_exe ),
1828
+ str (canonical_python_exe ),
1821
1829
str (SUPPORT / "generate_metadata.py" ),
1822
1830
str (metadata_path ),
1823
1831
],
You can’t perform that action at this time.
0 commit comments