Files
runner-images-PK/images/win/scripts/Installers/Install-PipxPackages.ps1
T

12 lines
531 B
PowerShell
Raw Normal View History

2020-10-08 16:57:24 +03:00
$pipxToolset = (Get-ToolsetContent).pipx
foreach($tool in $pipxToolset) {
if ($tool.python) {
2020-10-09 09:37:58 +03:00
$pythonPath = (Get-Item -Path "${env:AGENT_TOOLSDIRECTORY}\Python\${tool.python}.*\x64\python-${tool.python}*").FullName
2020-10-08 16:57:24 +03:00
Write-Host "Install ${tool.package} into python ${tool.python}"
2020-10-09 09:37:58 +03:00
pipx install $tool.package --python $pythonPath
2020-10-08 16:57:24 +03:00
} else {
Write-Host "Install ${tool.package} into default python"
pipx install $tool.package
}
2020-10-09 09:37:58 +03:00
}
Invoke-PesterTests -TestFile "PipxPackages"