Launchers: discover versioned Python (SHELL-LAUNCHERS-PYTHON315) #1942
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1942
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/posix-python-discovery"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in the coordination issue as:
SHELL-LAUNCHERS-PYTHON315in #1608What and why
Build.shandMods.shrejected a supported Python installation whenpython3.15was the only usable interpreter onPATH. Both launchers now use a shared POSIX helper to discover versioned Python commands and select the highest usable minor version. The helper follows normalPATHprecedence for duplicate names and keeps thepython3andpythonfallbacks.Tested
mainwith a syntheticPATHand an olderpython3.python3 -I tests/test_shell_launchers.pypassed all 7 tests. The new case covers later minor versions, duplicate names, spaces onPATH, and argument forwarding for both launchers.git diff --check, and the no-game-data check passed for the changed files.GPUs tested: n/a (CPU-only launcher tests)
AI-assisted: yes
Checklist
mainwhen prepared.Merged after local re-verification: this PR merged onto
maina8e427b44 without conflict, and its test file(s) (tests/test_shell_launchers.py) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.