Compare commits

..

4 Commits

Author SHA1 Message Date
aparnajyothi-y
27021dcea9 Merge branch 'main' into ubuntu-24.04-build-failure-fix 2024-08-29 13:37:29 +05:30
Aparna Jyothi
3d38d040a7 fix for ubuntu 24.04 issue for no restart 2024-08-29 13:16:58 +05:30
aparnajyothi-y
15da69164a Update build-python-packages.yml 2024-08-13 18:48:31 +05:30
aparnajyothi-y
77a5f8b588 Update build-python-packages.yml 2024-08-09 12:12:49 +05:30
2 changed files with 311 additions and 1426 deletions

View File

@@ -13,35 +13,29 @@ Import-Module (Join-Path $PSScriptRoot "../builders/python-version.psm1")
BeforeAll { BeforeAll {
function Analyze-MissingModules([string] $buildOutputLocation) { function Analyze-MissingModules([string] $buildOutputLocation) {
$searchStringStart = "Failed to build these modules:" $searchStringStart = "Failed to build these modules:"
$searchStringEnd = "running build_scripts" $searchStringEnd = "running build_scripts"
$pattern = "$searchStringStart(.*?)$searchStringEnd" $pattern = "$searchStringStart(.*?)$searchStringEnd"
$buildContent = Get-Content -Path $buildOutputLocation $buildContent = Get-Content -Path $buildOutputLocation
$splitBuiltOutput = $buildContent -split "\n" $splitBuiltOutput = $buildContent -split "\n";
### Search for missing modules that are displayed between the search strings ### Search for missing modules that are displayed between the search strings
$regexMatch = [regex]::match($splitBuiltOutput, $pattern) $regexMatch = [regex]::match($SplitBuiltOutput, $Pattern)
if ($regexMatch.Success) { if ($regexMatch.Success)
$module = $regexMatch.Groups[1].Value.Trim() {
Write-Host "Failed missing modules:" $module = $regexMatch.Groups[1].Value.Trim()
Write-Host $module Write-Host "Failed missing modules:"
try { Write-Host $module
$semver = [semver]"$($Version.Major).$($Version.Minor)" if ( ($module -eq "_tkinter") -and ( [semver]"$($Version.Major).$($Version.Minor)" -ge [semver]"3.10" -and $Version.PreReleaseLabel ) ) {
} catch { Write-Host "$module $Version ignored"
Write-Error "Invalid Semantic Version format: $Version" } else {
return 1 return 1
}
} }
if (($module -eq "_tkinter") -and ($semver -ge [semver]"3.8")) { return 0
Write-Host "$module $Version ignored"
} else {
return 1
}
} }
return 0
}
} }
Describe "Tests" { Describe "Tests" {
@@ -60,7 +54,7 @@ Describe "Tests" {
# linux has no display name and no $DISPLAY environment variable - skip tk test # linux has no display name and no $DISPLAY environment variable - skip tk test
# if (-not (($Platform -match "ubuntu") -or ($Platform -match "linux"))) { # if (-not (($Platform -match "ubuntu") -or ($Platform -match "linux"))) {
# It "Check if tcl/tk has the same headed and library versions" { # It "Check if tcl/tk has the same headed and library versions" {
# "python ./sources/tcltk.py" | Should -ReturnZeroExitCode # "python ./sources/tcltk.py" | Should -ReturnZeroExitCode
# } # }
# } # }

File diff suppressed because it is too large Load Diff