mplement script to build and prepare packages for Python

This commit is contained in:
Maxim Lobanov
2020-04-29 10:57:27 +03:00
commit c641695f6a
37 changed files with 2558 additions and 0 deletions

11
tests/clean-toolcache.ps1 Normal file
View File

@@ -0,0 +1,11 @@
if ($env:PLATFORM -match 'windows') {
$PythonFilter = "Name like '%Python%'"
Get-WmiObject Win32_Product -Filter $PythonFilter | Foreach-Object {
Write-Host "Uninstalling $($_.Name) ..."
$_.Uninstall() | Out-Null
}
}
$PythonToolcachePath = Join-Path -Path $env:AGENT_TOOLSDIRECTORY -ChildPath "Python"
Write-Host "Removing Python toolcache directory ..."
Remove-Item -Path $PythonToolcachePath -Recurse -Force