Repository navigation
Use staged Python for embuilder - #1924
Merged
Merged
Conversation
Invoke embuilder.py with the Python runtime already provided by the Emscripten transport package instead of relying on the agent's python3 resolution. Co-authored-by: Copilot <[email protected]>
Set EMSDK_PYTHON instead of bypassing the launchers, preserving Python environment isolation and platform workarounds. Co-authored-by: Copilot <[email protected]> Copilot-Session: 91d767a0-610e-452b-b78f-9679dfcc5d58
akoeplinger
marked this pull request as ready for review
October 4, 2026 09:03
akoeplinger
force-pushed
the
use-staged-python-for-embuilder
branch
from
October 4, 2026 09:17
34d2a31 to
7d813db
Compare
akoeplinger
approved these changes
Oct 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pass
EMSDK_PYTHON=$(PythonPath)to both embuilder tasks so the existing Emscripten launchers select the staged Python runtime on macOS and Windows, andpython3on Linux.Motivation
The macOS VMR vertical build selected Xcode Python 3.9.6, while the current Emscripten sources require Python 3.10 or newer. The packaged Python was already staged, but the embuilder tasks did not pass EMSDK_PYTHON. Running emsdk activate in a separate Exec does not propagate its environment to later tasks.
Keep the wrappers rather than invoking embuilder.py directly: they ignore Python environment overrides with -E, clear _PYTHON_SYSCONFIGDATA_NAME, and preserve Windows UTF-8 handling and platform workarounds.
Failing build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1620784&view=logs&j=5551d7c4-237a-5520-de91-e8efe1228738
Validation