Skip to content

fix(setup): skip unusable Python candidates and find versioned names - #3

Merged
boykopovar merged 1 commit into
boykopovar:mainfrom
AnyDevStudio:fix/setup-python-discovery
Nov 15, 2026
Merged

boykopovar merged 1 commit into
boykopovar:mainfrom
AnyDevStudio:fix/setup-python-discovery

Conversation

@utkuhalis

Copy link
Copy Markdown
Contributor

Summary

adk setup stopped at the first problematic PATH entry instead of trying the next one, and only looked for python3 and python.

  • A file named python3 that cannot be launched aborted with Cannot launch Python: Permission denied. The version probe now treats a launch failure as "not this one".
  • An unreadable PATH directory aborted with a filesystem error. The lookup now uses the non-throwing is_regular_file overload.
  • POSIX hosts now also check python3.15 through python3.11, for systems where python3 is older than 3.11 but a newer versioned interpreter is installed.

The real setup.py run still reports launch failures and non-zero exit codes as before.

Testing

ProjectCommands.py covers the three cases on POSIX. Each case failed against the previous code and passes now.

Tested on macOS arm64 only, where running it also needs the executable path fix from fix/macos-host. ctest passed 11/11 with both applied. I did not run Linux or Windows locally, so CI is the check there.

@boykopovar
boykopovar merged commit 0e3c17c into boykopovar:main Nov 15, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants