7
7
- task : UsePythonVersion@0
8
8
inputs :
9
9
versionSpec : ${{ parameters.pythonVersion }}
10
+ allowUnstable : true
10
11
addToPath : true
11
12
- powershell : |
12
13
# Parse the Python minor version
@@ -22,6 +23,16 @@ steps:
22
23
Write-Host "Minor version: $PY_MINOR"
23
24
Write-Host "##vso[task.setvariable variable=minorVersion;]$PY_MINOR"
24
25
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
+
25
36
# Set build-related variables based on Python minor version
26
37
if( $PY_MINOR -ge 13 )
27
38
{
@@ -51,7 +62,15 @@ steps:
51
62
disableAutoCwd : true
52
63
scriptPath : ' eng/pack/scripts/nix_arm64_deps.sh'
53
64
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')
55
74
- bash : |
56
75
pip install pip-audit
57
76
cd workers
@@ -207,16 +226,16 @@ steps:
207
226
$missing += $item
208
227
}
209
228
}
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 }
214
233
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
+ # }
220
239
221
240
if ($missing.Count -gt 0) {
222
241
Write-Error "Validation failed. Missing expected files/folders:`n$($missing -join "`n")"
0 commit comments