This is an automated email from the ASF dual-hosted git repository.
CurtHagenlocher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-dotnet.git
The following commit(s) were added to refs/heads/main by this push:
new debff86 Fix Powershell RC verification script to avoid stubs (#351)
debff86 is described below
commit debff867ef4ac9a62cd5173e69397343b7da4335
Author: Curt Hagenlocher <[email protected]>
AuthorDate: Tue May 5 14:39:00 2026 -0700
Fix Powershell RC verification script to avoid stubs (#351)
## What's Changed
Th Powershell RC verification script has been fixed to avoid any paths
in `WindowsApps` as these are likely to be stubs that point the
Microsoft Store rather than being the programs we want.
---
dev/release/verify_rc.ps1 | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/dev/release/verify_rc.ps1 b/dev/release/verify_rc.ps1
index c916ffa..de64d05 100644
--- a/dev/release/verify_rc.ps1
+++ b/dev/release/verify_rc.ps1
@@ -151,12 +151,18 @@ function Test-Source-Distribution {
if (-not (Test-Path env:PYTHON)) {
# On Windows, Python 3 installs as python.exe (no python3.exe).
# On Linux/macOS, python3 is the standard name.
- if (Get-Command python3 -ErrorAction SilentlyContinue) {
- $env:PYTHON = "python3"
- } elseif (Get-Command python -ErrorAction SilentlyContinue) {
- $env:PYTHON = "python"
- } else {
- throw "Python is required but neither python3 nor python was found"
+ # Filter out Windows Store "app execution alias" stubs that live
+ # in WindowsApps and just open the Microsoft Store.
+ $env:PYTHON = ""
+ foreach ($name in @("python3", "python")) {
+ $cmd = Get-Command $name -ErrorAction SilentlyContinue
+ if ($cmd -and $cmd.Source -notmatch '[/\\]WindowsApps[/\\]') {
+ $env:PYTHON = $name
+ break
+ }
+ }
+ if ([string]::IsNullOrEmpty($env:PYTHON)) {
+ throw "Python 3 is required but no real Python installation was
found (Windows Store stubs do not count)"
}
}
$pyVersion = & $env:PYTHON --version 2>&1