[PR #1942] Launchers: discover versioned Python (SHELL-LAUNCHERS-PYTHON315) #1950

Open
opened 2026-11-26 21:19:30 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • b147519 Discover 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-PYTHON315 in #1608

What and why

Build.sh and Mods.sh rejected a supported Python installation when python3.15 was the only usable interpreter on PATH. Both launchers now use a shared POSIX helper to discover versioned Python commands and select the highest usable minor version. The helper follows normal PATH precedence for duplicate names and keeps the python3 and python fallbacks.

Tested

  • Reproduced both launcher failures on main with a synthetic PATH and an older python3.
  • python3 -I tests/test_shell_launchers.py passed all 7 tests. The new case covers later minor versions, duplicate names, spaces on PATH, and argument forwarding for both launchers.
  • Shell syntax, 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

  • Based on current main when prepared.
  • One topic.
  • No game data, keys, or decryption.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1942 **Author:** [@d6ge-dev](https://github.com/d6ge-dev) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/posix-python-discovery` --- ### 📝 Commits (1) - [`b147519`](https://github.com/ubiquitarianism/leonida/commit/b1475198b138bf7c474a1fe83b3d7753fc003150) Discover versioned Python in the POSIX launchers ### 📊 Changes **4 files changed** (+67 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `Build.sh` (+2 -7) 📝 `Mods.sh` (+2 -6) ➕ `scripts/launcher_python.sh` (+40 -0) 📝 `tests/test_shell_launchers.py` (+23 -7) </details> ### 📄 Description Claimed in the coordination issue as: `SHELL-LAUNCHERS-PYTHON315` in #1608 ### What and why `Build.sh` and `Mods.sh` rejected a supported Python installation when `python3.15` was the only usable interpreter on `PATH`. Both launchers now use a shared POSIX helper to discover versioned Python commands and select the highest usable minor version. The helper follows normal `PATH` precedence for duplicate names and keeps the `python3` and `python` fallbacks. ### Tested - Reproduced both launcher failures on `main` with a synthetic `PATH` and an older `python3`. - `python3 -I tests/test_shell_launchers.py` passed all 7 tests. The new case covers later minor versions, duplicate names, spaces on `PATH`, and argument forwarding for both launchers. - Shell syntax, `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 - [x] Based on current `main` when prepared. - [x] One topic. - [x] No game data, keys, or decryption. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1950
No description provided.