77- task : UsePythonVersion@0
88 inputs :
99 versionSpec : ${{ parameters.pythonVersion }}
10+ allowUnstable : true
1011 addToPath : true
1112- powershell : |
1213 # Parse the Python minor version
@@ -22,6 +23,16 @@ steps:
2223 Write-Host "Minor version: $PY_MINOR"
2324 Write-Host "##vso[task.setvariable variable=minorVersion;]$PY_MINOR"
2425
26+ # Detect if this is an RC build
27+ if ($PY_VER -match "rc") {
28+ Write-Host "RC version detected"
29+ Write-Host "##vso[task.setvariable variable=isRC;]true"
30+ }
31+ else {
32+ Write-Host "Stable version detected"
33+ Write-Host "##vso[task.setvariable variable=isRC;]false"
34+ }
35+
2536 # Set build-related variables based on Python minor version
2637 if( $PY_MINOR -ge 13 )
2738 {
@@ -51,7 +62,15 @@ steps:
5162 disableAutoCwd : true
5263 scriptPath : ' eng/pack/scripts/nix_arm64_deps.sh'
5364 args : ' ${{ parameters.pythonVersion }}'
54- displayName : ' Install Dependencies'
65+ displayName : ' Install dependencies'
66+ condition : eq(variables['isRC'], 'false')
67+ - task : ShellScript@2
68+ inputs :
69+ disableAutoCwd : true
70+ scriptPath : ' eng/pack/scripts/rc_nix_arm64_deps.sh'
71+ args : ' ${{ parameters.pythonVersion }}'
72+ displayName : ' Build dependencies from scratch'
73+ condition : eq(variables['isRC'], 'true')
5574- bash : |
5675 pip install pip-audit
5776 cd workers
@@ -207,16 +226,16 @@ steps:
207226 $missing += $item
208227 }
209228 }
210- # === gRPC check ===
211- $grpcPattern = "*$(majorVersion)$(minorVersion)-${{ parameters.grpcBuild }}"
212- $grpcMatch = Get-ChildItem -Path $cythonDir -Name -ErrorAction SilentlyContinue |
213- Where-Object { $_ -like $grpcPattern }
229+ # # === gRPC check ===
230+ # $grpcPattern = "*$(majorVersion)$(minorVersion)-${{ parameters.grpcBuild }}"
231+ # $grpcMatch = Get-ChildItem -Path $cythonDir -Name -ErrorAction SilentlyContinue |
232+ # Where-Object { $_ -like $grpcPattern }
214233
215- if (-not $grpcMatch) {
216- $missing += "grpc/_cython/$grpcPattern"
217- } else {
218- Write-Host "✅ Found gRPC binary: $grpcMatch"
219- }
234+ # if (-not $grpcMatch) {
235+ # $missing += "grpc/_cython/$grpcPattern"
236+ # } else {
237+ # Write-Host "✅ Found gRPC binary: $grpcMatch"
238+ # }
220239
221240 if ($missing.Count -gt 0) {
222241 Write-Error "Validation failed. Missing expected files/folders:`n$($missing -join "`n")"
0 commit comments