##// END OF EJS Templates
contrib: add a hint if the Windows dependency MSI is already installed...
Matt Harbison -
r49955:246ee748 default draft
parent child Browse files
Show More
@@ -90,9 +90,15 b' function Invoke-Process($path, $argument'
90 90 $p = Start-Process -FilePath $path -ArgumentList $arguments -Wait -PassThru -WindowStyle Hidden
91 91
92 92 if ($p.ExitCode -ne 0) {
93 # If the MSI is already installed, ignore the error
94 if ($p.ExitCode -eq 1638) {
95 Write-Output "program already installed; continuing..."
96 }
97 else {
93 98 throw "process exited non-0: $($p.ExitCode)"
94 99 }
95 100 }
101 }
96 102
97 103 function Install-Python3($name, $installer, $dest, $pip) {
98 104 Write-Output "installing $name"
@@ -150,7 +156,7 b' function Install-Dependencies($prefix) {'
150 156 Install-Python3 "Python 3.7 32-bit" ${prefix}\assets\python37-x86.exe ${prefix}\python37-x86 ${pip}
151 157 Install-Python3 "Python 3.7 64-bit" ${prefix}\assets\python37-x64.exe ${prefix}\python37-x64 ${pip}
152 158 Install-Python3 "Python 3.8 32-bit" ${prefix}\assets\python38-x86.exe ${prefix}\python38-x86 ${pip}
153 # Install-Python3 "Python 3.8 64-bit" ${prefix}\assets\python38-x64.exe ${prefix}\python38-x64 ${pip}
159 Install-Python3 "Python 3.8 64-bit" ${prefix}\assets\python38-x64.exe ${prefix}\python38-x64 ${pip}
154 160 Install-Python3 "Python 3.9 32-bit" ${prefix}\assets\python39-x86.exe ${prefix}\python39-x86 ${pip}
155 161 Install-Python3 "Python 3.9 64-bit" ${prefix}\assets\python39-x64.exe ${prefix}\python39-x64 ${pip}
156 162 Install-Python3 "Python 3.10 32-bit" ${prefix}\assets\python310-x86.exe ${prefix}\python310-x86 ${pip}
General Comments 0
You need to be logged in to leave comments. Login now