Compare commits
36 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ae7e50b370 | |||
| 7d36f506c4 | |||
| f670a2adea | |||
| 505f65215c | |||
| 4598952486 | |||
| 42bcd17332 | |||
| 878244d959 | |||
| 42c2eea389 | |||
| 493c59469e | |||
| bd93b9d693 | |||
| d0e5494ee2 | |||
| 0601c2bfde | |||
| 4eb1751819 | |||
| 54aba042fd | |||
| 31ab2bc9f8 | |||
| 5f4f86cc5e | |||
| 8ea13d774e | |||
| afecc6a8b9 | |||
| f4b22cc454 | |||
| 281024aec4 | |||
| 17b1cd02ca | |||
| 33a76c361a | |||
| 371f79b70a | |||
| 3b961aaf4b | |||
| e67096ebd1 | |||
| bd7c907270 | |||
| 8a3240d440 | |||
| 0da39d896f | |||
| 9fb025cb4b | |||
| 2c5eb53471 | |||
| 4a64b9faa7 | |||
| f122228a65 | |||
| de3f713ccc | |||
| 918fe6dc0f | |||
| 21af7aa4a5 | |||
| 39774a2eb7 |
@@ -0,0 +1 @@
|
||||
* @actions/virtual-environments-owners
|
||||
@@ -28,16 +28,20 @@ function Remove-RegistryEntries {
|
||||
$versionFilter = Get-RegistryVersionFilter -Architecture $Architecture -MajorVersion $MajorVersion -MinorVersion $MinorVersion
|
||||
|
||||
$regPath = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products"
|
||||
$regKeys = Get-ChildItem -Path Registry::$regPath -Recurse | Where-Object Property -Ccontains DisplayName
|
||||
foreach ($key in $regKeys) {
|
||||
if ($key.getValue("DisplayName") -match $versionFilter) {
|
||||
Remove-Item -Path $key.PSParentPath -Recurse -Force -Verbose
|
||||
if (Test-Path -Path Registry::$regPath) {
|
||||
$regKeys = Get-ChildItem -Path Registry::$regPath -Recurse | Where-Object Property -Ccontains DisplayName
|
||||
foreach ($key in $regKeys) {
|
||||
if ($key.getValue("DisplayName") -match $versionFilter) {
|
||||
Remove-Item -Path $key.PSParentPath -Recurse -Force -Verbose
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$regPath = "HKEY_CLASSES_ROOT\Installer\Products"
|
||||
Get-ChildItem -Path Registry::$regPath | Where-Object { $_.GetValue("ProductName") -match $versionFilter } | ForEach-Object {
|
||||
Remove-Item Registry::$_ -Recurse -Force -Verbose
|
||||
if (Test-Path -Path Registry::$regPath) {
|
||||
Get-ChildItem -Path Registry::$regPath | Where-Object { $_.GetValue("ProductName") -match $versionFilter } | ForEach-Object {
|
||||
Remove-Item Registry::$_ -Recurse -Force -Verbose
|
||||
}
|
||||
}
|
||||
|
||||
$uninstallRegistrySections = @(
|
||||
@@ -121,6 +125,11 @@ if ($LASTEXITCODE -ne 0) {
|
||||
Throw "Error happened during Python installation"
|
||||
}
|
||||
|
||||
Write-Host "Create `python3` symlink"
|
||||
if ($MajorVersion -ne "2") {
|
||||
New-Item -Path "$PythonArchPath\python3.exe" -ItemType SymbolicLink -Value "$PythonArchPath\python.exe"
|
||||
}
|
||||
|
||||
Write-Host "Install and upgrade Pip"
|
||||
$PythonExePath = Join-Path -Path $PythonArchPath -ChildPath "python.exe"
|
||||
cmd.exe /c "$PythonExePath -m ensurepip && $PythonExePath -m pip install --upgrade pip --no-warn-script-location"
|
||||
|
||||
@@ -21,9 +21,14 @@ function Analyze-MissingModules([string] $buildOutputLocation) {
|
||||
$regexMatch = [regex]::match($SplitBuiltOutput, $Pattern)
|
||||
if ($regexMatch.Success)
|
||||
{
|
||||
$module = $regexMatch.Groups[1].Value.Trim()
|
||||
Write-Host "Failed missing modules:"
|
||||
Write-Host $regexMatch.Groups[1].Value
|
||||
return 1
|
||||
Write-Host $module
|
||||
if ( ($module -eq "_tkinter") -and ( ($Version -like "3.10.0-beta*") -or ($Version -like "3.10.0-alpha*") ) ) {
|
||||
Write-Host "$module $Version ignored"
|
||||
} else {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
|
||||
return 0
|
||||
@@ -82,4 +87,4 @@ Describe "Tests" {
|
||||
"./dist/simple-test" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+781
-161
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user