File: bootstrap.bat

package info (click to toggle)
libvpl 1%3A2.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 21,484 kB
  • sloc: cpp: 90,774; ansic: 5,987; python: 4,312; sh: 322; makefile: 7
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