mirror of
https://github.com/actions/python-versions.git
synced 2025-12-13 22:17:32 +00:00
mplement script to build and prepare packages for Python
This commit is contained in:
11
tests/clean-toolcache.ps1
Normal file
11
tests/clean-toolcache.ps1
Normal 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
|
||||
Reference in New Issue
Block a user