From 9a59cd064bb8d6246c8f0c520678e310984e66d0 Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Wed, 20 Apr 2016 15:44:51 -0400 Subject: [PATCH 1/4] BLD: Download miniconda over SSL --- ci/appveyor/install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/appveyor/install.ps1 b/ci/appveyor/install.ps1 index c964973c..0b4f0a9a 100644 --- a/ci/appveyor/install.ps1 +++ b/ci/appveyor/install.ps1 @@ -2,7 +2,7 @@ # Authors: Olivier Grisel, Jonathan Helmus and Kyle Kastner, Robert McGibbon # License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/ -$MINICONDA_URL = "http://repo.continuum.io/miniconda/" +$MINICONDA_URL = "https://repo.continuum.io/miniconda/" function DownloadMiniconda ($python_version, $platform_suffix) { From baf10e314847386e64845cd48b4afd254759b3dd Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Wed, 20 Apr 2016 15:45:18 -0400 Subject: [PATCH 2/4] BLD: Don't accept the download if we tried too many times It's likely we have an incomplete file. --- ci/appveyor/install.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ci/appveyor/install.ps1 b/ci/appveyor/install.ps1 index 0b4f0a9a..eb75be14 100644 --- a/ci/appveyor/install.ps1 +++ b/ci/appveyor/install.ps1 @@ -33,12 +33,11 @@ function DownloadMiniconda ($python_version, $platform_suffix) { Start-Sleep 1 } } - if (Test-Path $filepath) { - Write-Host "File saved at" $filepath - } else { + if (!(Test-Path $filepath) -or ($i -ge $retry_attempts)) { # Retry once to get the error message if any at the last try $webclient.DownloadFile($url, $filepath) } + Write-Host "File saved at" $filepath return $filepath } From bffe00f9315dd09cbc8f7fa73f20655d6c1fd3ad Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Thu, 21 Apr 2016 10:30:48 -0400 Subject: [PATCH 3/4] BLD: Print the download failure reason --- ci/appveyor/install.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/appveyor/install.ps1 b/ci/appveyor/install.ps1 index eb75be14..3d251068 100644 --- a/ci/appveyor/install.ps1 +++ b/ci/appveyor/install.ps1 @@ -30,6 +30,8 @@ function DownloadMiniconda ($python_version, $platform_suffix) { break } Catch [Exception]{ + Write-Host "Exception downloading" $filename ":" $_.Exception.ToString() + Write-Host "Retrying in 1 second." Start-Sleep 1 } } From b510703169b4cb37c037f83f99adc5438befc771 Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Thu, 21 Apr 2016 16:59:52 -0400 Subject: [PATCH 4/4] BLD: Using GCE to prevent the "input line is too long" error when activating a conda env. --- appveyor.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 3bad42b3..8ea6cab2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -42,6 +42,10 @@ environment: platform: - x64 +# Using GCE to prevent the "input line is too long" error when activating a +# conda env. +image: Visual Studio 2015 - GCE + cache: - '%LOCALAPPDATA%\pip\Cache'