File: bootstrap.ps1

package info (click to toggle)
xgboost 3.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 13,848 kB
  • sloc: cpp: 67,603; python: 35,537; java: 4,676; ansic: 1,426; sh: 1,352; xml: 1,226; makefile: 204; javascript: 19
file content (73 lines) | stat: -rw-r--r-- 2,495 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
## Install packages from Chocolatey

# jq & yq
Write-Output "Installing jq and yq..."
choco install jq --version=1.7.1
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }
choco install yq --version=4.40.2
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }

# AWS CLI
Write-Output "Installing AWS CLI..."
choco install awscli --version=2.18.11
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }

# Git
Write-Host '>>> Installing Git...'
choco install git --version=2.47.0
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }

# CMake
Write-Host '>>> Installing CMake 3.30.5...'
choco install cmake --version 3.30.5 --installargs "ADD_CMAKE_TO_PATH=System"
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }

# Notepad++
Write-Host '>>> Installing Notepad++...'
choco install notepadplusplus
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }

# Miniforge3
Write-Host '>>> Installing Miniforge3...'
choco install miniforge3 --params="'/InstallationType:AllUsers /RegisterPython:1 /D:C:\tools\miniforge3'"
C:\tools\miniforge3\Scripts\conda.exe init --user --system
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }
. "C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1"
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }
conda config --set auto_activate_base false

# Java 11
Write-Host '>>> Installing Java 11...'
choco install openjdk11
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }

# Maven
Write-Host '>>> Installing Maven...'
choco install maven
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }

# GraphViz
Write-Host '>>> Installing GraphViz...'
choco install graphviz
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }

# Visual Studio 2022 Community
Write-Host '>>> Installing Visual Studio 2022 Community...'
choco install visualstudio2022community `
    --params "--wait --passive --norestart"
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }
choco install visualstudio2022-workload-nativedesktop --params `
    "--wait --passive --norestart --includeOptional"
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }

# CUDA 12.5
Write-Host '>>> Installing CUDA 12.5...'
choco install cuda --version=12.5.1.555
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }

# R 4.3
Write-Host '>>> Installing R...'
choco install r.project --version=4.3.2
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }
choco install rtools --version=4.3.5550
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }