Skip to content

Commit

Permalink
feat: install python, botocore, boto3 on Windows build agents
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdon committed Sep 26, 2024
1 parent 4a23dbb commit 302c270
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions assets/packer/build-agents/windows/base_setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ catch {
Write "Failed to install Client for NFS"
}

try {
# Python
Write "Installing Python, botocore, boto3"
choco install -y --no-progress python
refreshenv
pip install botocore boto3
}
catch {
Write "Failed to install Python, botocore, boto3"
}

try {
Write Get-Disk | Where-Object partitionstyle -EQ 'raw'
Get-Disk | Where-Object partitionstyle -EQ \"raw\" | Initialize-Disk -PartitionStyle GPT -PassThru | New-Partition -AssignDriveLetter -UseMaximumSize | Format-Volume -FileSystem NTFS -NewFileSystemLabel \"Data Drive\" -Confirm:$false
Expand Down

0 comments on commit 302c270

Please sign in to comment.