Skip to content

Keep the selected Python for Mac host generators - #729

Merged
v0lumehi merged 3 commits into
LNPANDY:mainfrom
thehobbit85:codex/issue-711-host-python
Nov 5, 2026
Merged

v0lumehi merged 3 commits into
LNPANDY:mainfrom
thehobbit85:codex/issue-711-host-python

Conversation

@thehobbit85

@thehobbit85 thehobbit85 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Fix or feature

  • Fix
  • Feature

What and why

Fixes #711.

The reported build ran under the app's bundled Python 3.13, but the Mac host Makefile started host_msl.py with an older Python 3.6 found on PATH. That interpreter rejected capture_output, after extraction and shader compilation had already finished.

The engine patch passes the pipeline's exact sys.executable to both host Make invocations as PYTHON, including the dry run used to obtain the compiler command. The host Makefile declares PYTHON ?= python3 before its first parse-time use and quotes it for all four shader/profile generator calls. Direct Make builds retain their default, while explicit versioned interpreters and paths with spaces work. This does not change PATH or .NET SDK selection.

Patch 0078 has Upstream-Status: pending. The upstream counterpart awaits maintainer submission.

Checked

  • Conflict refresh: rebased only after verifying the patches/series conflict with main bef6d01a0673edcb4b4dd816890ec060add2629f. Preserved the original single commit and patch contents, with the patch moved to slot 0078.
  • Required push checks: all pass, including native Swift build and 1,081 Mac tests (28 skipped), Qt 321 tests (36 skipped), tools 211 tests (22 skipped), and 158 workflow-script tests. Hosted CI must validate the refreshed head 23d8ca2143d340b62b6ff2f58cddff5f2548ba30.
  • Current branch: the actual host_msl Make target and pipeline command tests pass, 9 tests. Related NSP environment checks pass, 15 tests, work-folder checks pass, 6 tests, and documentation checks pass, 11 tests. These run under native arm64 Python 3.14.6 on an Apple silicon Mac.
  • Patch queue: the required staged-patch hook passes. python3 tools/engine.py check confirms all 47 patches apply cleanly to upstream 7249ee9f95ed728aff9a86395330d10d4c91fb5c, and engine.py sync reproduces the exported change. The patch contents are byte-for-byte unchanged from the original fix, now numbered 0078 after main's existing patches.
  • Environment-switch table: 2 of 3 checks pass. The completeness check still fails because the existing fork settings DM_TOUCH_HINT, DM_TOUCH_LAYOUT, DM_TOUCH_SIZE and DM_TOUCH_STICK lack documented table rows. Re-running the scanner against the frozen main engine before this patch produces identical results. This PR does not duplicate the separate documentation fix in CI: report engine test failures and supply required test inputs #722.
  • Test for a fix: the original regression checks failed before implementation. The real Makefile test puts an unusable python3 first on PATH, selects a versioned interpreter in a directory with spaces, and verifies the generated shader header and synthetic Metal compilation. The pipeline test verifies the exact interpreter argument in both its generation command and dry run. Existing direct-Make tests cover the default fallback.
  • Full engine Python suite and Python lint were not rerun for this conflict-only refresh. The focused run completed 44 tests with the one unrelated environment-table failure described above.
  • Visual QA: None, no visible launcher change. The packing reference, game-note link and generated symptom index document the diagnosed failure.
  • Run on a device or Mac: synthetic Make/Metal tooling on an Apple silicon Mac. No game package build, gameplay, shader-chain change or device install. The interpreter contract is tested without game files.

Screenshots

None, no visible change.

Scope

  • No engine file (dm/, scripts/, docs/, ref/) is added directly to the repository. The engine change is exported as patches/0078-keep-the-selected-python-when-generating-the-mac.patch, with complete metadata, and the queue check passes.
  • The engine patch has truthful Upstream-Status: pending. Its upstream counterpart awaits maintainer submission.
  • A change to a launcher view has before and after screenshots above. Not applicable, no launcher view changes.
  • No keys, game files or data extracted from a game in the change or the attachments.

@github-actions github-actions Bot added the patch-queue Changes the patch queue or the upstream pin label Nov 5, 2026
@temmiegreen

Copy link
Copy Markdown

sorry if its a dumb question I'm not great with code n stuff but can I fix it on my own? If yes, how? In language for dummies so I accidentally don't break something.

@v0lumehi v0lumehi mentioned this pull request Nov 5, 2026
1 task done
@v0lumehi v0lumehi added this to the v1.2.1 milestone Nov 5, 2026
@v0lumehi v0lumehi added the bug Something isn't working label Nov 5, 2026
@thehobbit85
thehobbit85 force-pushed the codex/issue-711-host-python branch from 5488305 to 23d8ca2 Compare November 5, 2026 18:24
@v0lumehi v0lumehi mentioned this pull request Nov 5, 2026
5 of 6 tasks
@v0lumehi
v0lumehi merged commit d656d64 into LNPANDY:main Nov 5, 2026
16 of 17 checks passed
@v0lumehi

v0lumehi commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

I renumbered the patch to 0080 after #722 and #723 took 0078 and 0079.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working patch-queue Changes the patch queue or the upstream pin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build game failed

3 participants