Skip to content

Commit

Permalink
Try to fix downloads in appveyor.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Mar 22, 2021
1 parent a7316bf commit a521984
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions appveyor_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ function InstallPython ($python_version, $architecture, $python_home) {
$installer_exe = ($py_major + $py_minor) -as [int] -ge 35
if ($installer_exe) {
$arch_suffix = @{"32"="";"64"="-amd64"}[$architecture]
$filename = "python-" + $python_version + $arch_suffix + ".exe"
$dl_filename = "python-" + $python_version + $arch_suffix + ".exe"
$filename = "python-" + $py_major + "." + $py_minor + $arch_suffix + ".exe"
} else {
$arch_suffix = @{"32"="";"64"=".amd64"}[$architecture]
$filename = "python-" + $python_version + $arch_suffix + ".msi"
$dl_filename = "python-" + $python_version + $arch_suffix + ".msi"
$filename = "python-" + $py_major + "." + $py_minor + $arch_suffix + ".msi"
}
$url = $PYTHON_BASE_URL + $python_version + ".0/" + $filename
$url = $PYTHON_BASE_URL + $python_version + "/" + $dl_filename
$filepath = Download $url $filename $DOWNLOADS
Write-Host "Installing" $filename "to" $python_home
if ($installer_exe) {
Expand Down Expand Up @@ -99,7 +101,7 @@ function InstallPipPackage ($python_home, $package) {
}

function main () {
InstallPython $env:PYTHON_VERSION $env:PYTHON_ARCH $env:PYTHON
InstallPython $env:PYTHON_VERSION + ".0" $env:PYTHON_ARCH $env:PYTHON
InstallPip $env:PYTHON
InstallPipPackage $env:PYTHON setuptools
InstallPipPackage $env:PYTHON wheel
Expand Down

0 comments on commit a521984

Please sign in to comment.