@@ -12,18 +12,18 @@ if isWindows; then
1212 # subdirectory for each installed Python version.
1313 #
1414 # The -V flag of the sort command sorts the input by version number.
15- # native_python_version="$(ls /c/hostedtoolcache/windows/Python | sort -Vr | head -n 1)"
15+ native_python_version=" $( ls /c/hostedtoolcache/windows/Python | sort -Vr | head -n 1) "
1616
17- # # Make sure we use the native python interpreter instead of some msys equivalent
18- # # one way or another. The msys interpreters seem to have weird path conversions
19- # # baked in which break LLVM's build system one way or another, so let's use the
20- # # native version which keeps everything as native as possible.
21- # python_home="/c/hostedtoolcache/windows/Python/${native_python_version}/x64"
22- # if ! [[ -f "${python_home}/python3.exe" ]]; then
23- # cp "${python_home}/python.exe" "${python_home}/python3.exe"
24- # fi
25- # ciCommandAddPath "C:\\hostedtoolcache\\windows\\Python\\${native_python_version}\\x64"
26- # ciCommandAddPath "C:\\hostedtoolcache\\windows\\Python\\${native_python_version}\\x64\\Scripts"
17+ # Make sure we use the native python interpreter instead of some msys equivalent
18+ # one way or another. The msys interpreters seem to have weird path conversions
19+ # baked in which break LLVM's build system one way or another, so let's use the
20+ # native version which keeps everything as native as possible.
21+ python_home=" /c/hostedtoolcache/windows/Python/${native_python_version} /x64"
22+ if ! [[ -f " ${python_home} /python3.exe" ]]; then
23+ cp " ${python_home} /python.exe" " ${python_home} /python3.exe"
24+ fi
25+ ciCommandAddPath " C:\\ hostedtoolcache\\ windows\\ Python\\ ${native_python_version} \\ x64"
26+ ciCommandAddPath " C:\\ hostedtoolcache\\ windows\\ Python\\ ${native_python_version} \\ x64\\ Scripts"
2727
2828 # Install pacboy for easily installing packages
2929 pacman -S --noconfirm pactoys
0 commit comments