Skip to content

Build.bat: probe Python 3.15 before 3.14 in the py launcher loop - #8140

Closed
ds1s1s1 wants to merge 1 commit into
ItsNotRexed:mainfrom
ds1s1s1:fix/build-bat-python-315
Closed

ds1s1s1 wants to merge 1 commit into
ItsNotRexed:mainfrom
ds1s1s1:fix/build-bat-python-315

Conversation

@ds1s1s1

@ds1s1s1 ds1s1s1 commented Nov 23, 2026

Copy link
Copy Markdown

What & Why:
Adds 3.15 at the front of Build.bat's for %%V in (3.15 3.14 3.13 3.12 3) do ( launcher probe loop so machines with Python 3.15 installed use py -3.15 instead of falling back to an older interpreter or failing when 3.14 is absent. Minimal 1-line edit; note open PR #7616 also modifies Build.bat (full interpreter path invocation) on different lines.

Files changed:

  • Build.bat

Coordination:

Tested:
CPU-only on Windows 11 (Python 3.15, rebased on upstream/main dde82f27e, no GPU run):

  • cmd.exe /c Build.bat --help -> exit 0
  • py -3 -m compileall -q make_game.py tools tests -> exit 0
  • py -3 -B -I scripts/check_no_game_data.py -> exit 0
  • py -3 -B -I tests/test_make_game_python_version.py -> Ran 3 tests in 0.933s OK
  • py -3 -B -I tests/test_docs_repo_paths.py -> Ran 3 tests in 0.155s OK

AI-assisted. No game files, extracted assets, or generated shaders are included.

@devnull34 devnull34 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified via Tier 2 Free Cloud (OpenRouter nemotron-3-ultra-550b:free): Adding 3.15 to the head of the py launcher search loop ensures that Windows development environments with CPython 3.15 installed prioritize it over 3.14/3.13/3.12 without manual override.

@ds1s1s1 ds1s1s1 closed this Nov 23, 2026
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