Skip to content

Commit

Permalink
Merge pull request #329 from jakirkham/hack_conda_update_appveyor
Browse files Browse the repository at this point in the history
Update `conda` on AppVeyor before activation
  • Loading branch information
jakirkham authored Oct 15, 2016
2 parents 654b6e0 + 02e7d54 commit b7be5b6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions conda_smithy/templates/appveyor.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ install:
- cmd: rmdir C:\cygwin /s /q
- 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% %TARGET_ARCH% %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.
# Please see PR ( https://github.com/conda/conda/pull/3349 ).
- 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: set PYTHONUNBUFFERED=1

Expand Down

0 comments on commit b7be5b6

Please sign in to comment.