| 1 |
@rem ------------------------------------------------------------------------------ |
| 2 |
@rem Copyright (C) Intel Corporation |
| 3 |
@rem |
| 4 |
@rem SPDX-License-Identifier: MIT |
| 5 |
@rem ------------------------------------------------------------------------------ |
| 6 |
@rem Install dependencies. |
| 7 |
|
| 8 |
@echo off |
| 9 |
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION |
| 10 |
|
| 11 |
:: configure winget to accept source agreements |
| 12 |
winget list Python.Python.3.10 --accept-source-agreements >NUL |
| 13 |
|
| 14 |
winget list Python.Python.3.10 >NUL || winget install -e --id=Python.Python.3.10 |
| 15 |
if %errorlevel% neq 0 exit /b %errorlevel% |
| 16 |
|
| 17 |
winget list Kitware.CMake >NUL || winget install -e --id Kitware.CMake |
| 18 |
if %errorlevel% neq 0 exit /b %errorlevel% |
| 19 |
|
| 20 |
winget list Microsoft.VisualStudio.2022.Community >NUL || winget install Microsoft.VisualStudio.2022.Community --silent --override "--wait --quiet --add ProductLang En-us --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended" |
| 21 |
if %errorlevel% neq 0 exit /b %errorlevel% |
| 22 |
|
| 23 |
winget list Git.Git >NUL || winget install -e --id=Git.Git |
| 24 |
if %errorlevel% neq 0 exit /b %errorlevel% |
| 25 |
|
| 26 |
python -m pip install pre-commit --proxy=%HTTP_PROXY% |
| 27 |
python -m pip install virtualenv==v20.24.5 --proxy=%HTTP_PROXY% |
| 28 |
|
| 29 |
endlocal |