install.cmd 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @echo on
  2. :: Make sure all the submodules are updated correctly
  3. cd %APPVEYOR_BUILD_FOLDER%
  4. git submodule update --init --recursive
  5. :: Remove entry with sh.exe from PATH to fix error with MinGW toolchain
  6. :: (For MinGW make to work correctly sh.exe must NOT be in your path)
  7. :: http://stackoverflow.com/a/3870338/2288008
  8. set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
  9. IF "%PLATFORM%"=="x86" (
  10. set MINGW_PATH=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin
  11. ) ELSE (
  12. set MINGW_PATH=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin
  13. )
  14. set PATH=%MINGW_PATH%;%PATH%
  15. :: Activate test environment anaconda
  16. IF "%PLATFORM%"=="x86" (
  17. set MINICONDA_PATH=%MINICONDA%
  18. ) ELSE (
  19. set MINICONDA_PATH=%MINICONDA%-%PLATFORM%
  20. )
  21. set PATH=%MINICONDA_PATH%;%MINICONDA_PATH%\\Scripts;%PATH%
  22. conda config --set always_yes yes --set changeps1 no
  23. REM This, together with next line, disables conda auto update (fixes problem with tqdm)
  24. conda config --set auto_update_conda false
  25. REM conda update -q conda
  26. conda info -a
  27. conda create -q -n test-environment python=%PYTHON_VERSION% numpy scipy future
  28. if errorlevel 1 exit /b 1
  29. :: NB: Need to run with call otherwise the script hangs
  30. call activate test-environment
  31. :: Set environment for build if 64bit
  32. :: NB: Needed during conda build!
  33. IF "%PLATFORM%"=="x64" (
  34. call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
  35. ) ELSE (
  36. REM Set environment for 32bit
  37. call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
  38. )
  39. @echo off