Repository navigation
fix(studio): keep embedded Python prefix bundle-local - #95
Draft
AgentArcLab wants to merge 2 commits into
Draft
AgentArcLab wants to merge 2 commits into
AgentArcLab wants to merge 2 commits into
Conversation
AgentArcLab
had a problem deploying
to
studio-signing
September 20, 2026 08:01 — with
GitHub Actions
Failure
This branch had an error being deployed
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.
Problem
The first relocatable-runtime fix removed the absolute Mach-O dependency, but Python.org's launcher still read the build host from
pyvenv.cfg. On a clean Mac, the final DMG then failed to importencodings; CI runners masked it because their system Python.framework supplied the missing standard library.Fix
pyvenv.cfgtohome = .and place a second copy besidelibpythonatruntime/lib/pyvenv.cfg, where the framework launcher resolves it.sys.prefixand the standard-library path stay inside the app runtime, both before DMG creation and from the mounted final DMG.studio-app-check.The macOS Release continues to publish only the DMG; no ZIP or stale macOS update manifest is generated.
Validation
uv run --no-project --with pytest pytest --confcutdir=tests/packaging -q tests/packaging/test_studio_dmg.py(4 passed)sh -n scripts/package_studio_app.shruntime/lib/pyvenv.cfgwithhome = .makes the existing bad Artifact resolvesys.prefixand stdlib inside the bundle.