-
Notifications
You must be signed in to change notification settings - Fork 21.3k
/
install_miniconda3.bat
28 lines (25 loc) · 1.09 KB
/
install_miniconda3.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
if "%BUILD_ENVIRONMENT%"=="" (
set CONDA_PARENT_DIR=%CD%
) else (
set CONDA_PARENT_DIR=C:\Jenkins
)
if "%REBUILD%"=="" set INSTALL_FRESH_CONDA=1
if NOT "%BUILD_ENVIRONMENT%"=="" set INSTALL_FRESH_CONDA=1
if "%INSTALL_FRESH_CONDA%"=="1" (
IF EXIST %CONDA_PARENT_DIR%\Miniconda3 ( rd /s /q %CONDA_PARENT_DIR%\Miniconda3 )
curl --retry 3 -k https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe --output %TMP_DIR_WIN%\Miniconda3-latest-Windows-x86_64.exe
if errorlevel 1 exit /b
if not errorlevel 0 exit /b
%TMP_DIR_WIN%\Miniconda3-latest-Windows-x86_64.exe /InstallationType=JustMe /RegisterPython=0 /S /AddToPath=0 /D=%CONDA_PARENT_DIR%\Miniconda3
if errorlevel 1 exit /b
if not errorlevel 0 exit /b
)
call %CONDA_PARENT_DIR%\Miniconda3\Scripts\activate.bat %CONDA_PARENT_DIR%\Miniconda3
if "%INSTALL_FRESH_CONDA%"=="1" (
call conda install -y -q python=%PYTHON_VERSION% numpy"<1.23" cffi pyyaml boto3 libuv
if errorlevel 1 exit /b
if not errorlevel 0 exit /b
call conda install -y -q -c conda-forge cmake=3.22.3
if errorlevel 1 exit /b
if not errorlevel 0 exit /b
)