From 2e67531c112ca11c66ba74b3f59170f6d3f0293d Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 18 Oct 2016 14:04:49 +0200 Subject: [PATCH] install conda-4.1.12 on appveyor fixes path too long issue patch copied from conda-smithy PR --- appveyor.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 981d81a7a..a9883dede 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -16,6 +16,16 @@ build: off install: - appveyor DownloadFile "https://raw.githubusercontent.com/pelson/Obvious-CI/master/bootstrap-obvious-ci-and-miniconda.py" - cmd: python bootstrap-obvious-ci-and-miniconda.py %CONDA_INSTALL_LOCN% %platform% %CONDA_PY:~0,1% --without-obvci + + # Add a hack to switch to `conda` version `4.1.12` before activating. + # This is required to handle a long path activation issue. + # Verbatim from https://github.com/conda-forge/conda-smithy/pull/329 + - cmd: set "OLDPATH=%PATH%" + - cmd: set "PATH=%CONDA_INSTALL_LOCN%\\Scripts;%CONDA_INSTALL_LOCN%\\Library\\bin;%PATH%" + - cmd: conda install --yes --quiet conda=4.1.12 + - cmd: set "PATH=%OLDPATH%" + - cmd: set "OLDPATH=" + - cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat - cmd: conda config --set show_channel_urls true - cmd: conda config --add channels conda-forge