mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:50:53 +01:00
[PR #1942] Launchers: discover versioned Python (SHELL-LAUNCHERS-PYTHON315) #1950
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1950
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1942
Author: @d6ge-dev
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/posix-python-discovery📝 Commits (1)
b147519Discover versioned Python in the POSIX launchers📊 Changes
4 files changed (+67 additions, -20 deletions)
View changed files
📝
Build.sh(+2 -7)📝
Mods.sh(+2 -6)➕
scripts/launcher_python.sh(+40 -0)📝
tests/test_shell_launchers.py(+23 -7)📄 Description
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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.