ci(lint): add Python314 to launcher candidates (host has 3.14.5)
Reorder candidates to put C:\Program Files\Python314 first (verified install path on the production host). Drop py.exe -3.11 hint to plain -3 since host has only 3.14.
This commit is contained in:
@@ -117,14 +117,18 @@ jobs:
|
||||
$candidates += @(
|
||||
'py.exe',
|
||||
'python.exe',
|
||||
'C:\Python311\python.exe',
|
||||
'C:\Python312\python.exe',
|
||||
'C:\Python313\python.exe',
|
||||
"$env:LOCALAPPDATA\Programs\Python\Python311\python.exe",
|
||||
"$env:LOCALAPPDATA\Programs\Python\Python312\python.exe",
|
||||
'C:\Program Files\Python311\python.exe',
|
||||
'C:\Program Files\Python314\python.exe',
|
||||
'C:\Program Files\Python313\python.exe',
|
||||
'C:\Program Files\Python312\python.exe',
|
||||
'C:\Program Files\Python313\python.exe'
|
||||
'C:\Program Files\Python311\python.exe',
|
||||
'C:\Python314\python.exe',
|
||||
'C:\Python313\python.exe',
|
||||
'C:\Python312\python.exe',
|
||||
'C:\Python311\python.exe',
|
||||
"$env:LOCALAPPDATA\Programs\Python\Python314\python.exe",
|
||||
"$env:LOCALAPPDATA\Programs\Python\Python313\python.exe",
|
||||
"$env:LOCALAPPDATA\Programs\Python\Python312\python.exe",
|
||||
"$env:LOCALAPPDATA\Programs\Python\Python311\python.exe"
|
||||
)
|
||||
$launcher = $null
|
||||
foreach ($c in $candidates) {
|
||||
@@ -137,7 +141,7 @@ jobs:
|
||||
Write-Host "Bootstrapping venv with: $launcher"
|
||||
|
||||
if ($launcher -like '*py.exe') {
|
||||
& $launcher -3.11 -m venv $env:VENV_DIR
|
||||
& $launcher -3 -m venv $env:VENV_DIR
|
||||
}
|
||||
else {
|
||||
& $launcher -m venv $env:VENV_DIR
|
||||
|
||||
Reference in New Issue
Block a user