Commit 8f366d6
committed
venvlauncher: try looking for the versioned .exe first and then fall back
By default venvlauncher only looks for python.exe in the python "home",
which fails in the MSYS2 case where there could be multiple python versions
in the same prefix i.e. python.exe could be 3.12 while the venv was created
with python3.13.exe.
Upstream CPython doesn't have this problem since they never have multiple
Python versions in the same prefix.
On the other hand the Python test suite (test_sysconfig specifically) creates
a venv for the uninstalled Python build dir, where only python.exe exists.
To cover both cases we first try to look for the python3.XY.exe and then
fall back to python.exe.1 parent 884f150 commit 8f366d6
2 files changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
830 | | - | |
| 830 | + | |
831 | 831 | | |
832 | 832 | | |
833 | | - | |
| 833 | + | |
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1930 | 1930 | | |
1931 | 1931 | | |
1932 | 1932 | | |
1933 | | - | |
| 1933 | + | |
| 1934 | + | |
1934 | 1935 | | |
1935 | 1936 | | |
1936 | 1937 | | |
| |||
1948 | 1949 | | |
1949 | 1950 | | |
1950 | 1951 | | |
1951 | | - | |
| 1952 | + | |
1952 | 1953 | | |
1953 | 1954 | | |
1954 | 1955 | | |
1955 | 1956 | | |
| 1957 | + | |
1956 | 1958 | | |
1957 | | - | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
1958 | 1968 | | |
1959 | 1969 | | |
1960 | 1970 | | |
| |||
0 commit comments