File: bootstrap.bat

package info (click to toggle)
libvpl-tools 1.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,652 kB
  • sloc: cpp: 107,469; python: 4,303; ansic: 3,202; sh: 159; lisp: 52; makefile: 13
file content (29 lines) | stat: -rw-r--r-- 1,233 bytes parent folder | download | duplicates (4)
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
29
@rem ------------------------------------------------------------------------------
@rem Copyright (C) Intel Corporation
@rem
@rem SPDX-License-Identifier: MIT
@rem ------------------------------------------------------------------------------
@rem Install dependencies.

@echo off
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION

:: configure winget to accept source agreements
winget list Python.Python.3.10 --accept-source-agreements >NUL

winget list Python.Python.3.10 >NUL || winget install -e --id=Python.Python.3.10
if %errorlevel% neq 0 exit /b %errorlevel%

winget list Kitware.CMake >NUL || winget install -e --id Kitware.CMake
if %errorlevel% neq 0 exit /b %errorlevel%

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"
if %errorlevel% neq 0 exit /b %errorlevel%

winget list Git.Git >NUL || winget install -e --id=Git.Git
if %errorlevel% neq 0 exit /b %errorlevel%

python -m pip install pre-commit --proxy=%HTTP_PROXY%
python -m pip install virtualenv==v20.24.5 --proxy=%HTTP_PROXY%

endlocal