Repository navigation
Feat: Ship the stdlib in the packaged desktop app - #76
Merged
Merged
Conversation
…o the real prefix (#60) deleteRecursively followed the symlink to the staged CPython prefix and emptied it, failing 159 desktop tests that ran after it.
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.
Closes #60
Feature added (SPEC L-9)
prepare*AppResources) aspython-multiplatform-home/; switchpythonBindings { packagePythonHome.set(false) }.PackagedPythonHomeresolves the home (env PYTHONHOME > -Dpython.multiplatform.home > <compose.application.resources.dir>/python-multiplatform-home) and callsPy_SetPythonHomebeforePy_Initialize; libpython is loaded from that prefix first.Defect fixed during verification: the new launch test symlinked the real staged prefix into a scratch dir and
deleteRecursively()followed the link and emptied it (159 desktop tests failed); cleanup now deletes without following links.Verification (coordinator, after merging develop incl. #64/#28, each module separately): plugin 231/0, desktopTest 578/0, ksp artifact 35/0, app 70/0, compose 111/0; androidNative, iosSimulatorArm64, wasmJs, releaseKotlinAndroid compile OK;
:sample:createDistributableOK — the .app carriesresources/python-multiplatform-home/lib/python3.14/encodings/__init__.pyand libpython3.14.dylib. Launched from/with PYTHONHOME unset:INFO: Python initialized successfully!/runtime : 3.14.7.Known, separate: in the packaged app the sample's
proxiesstep fails (ExceptionInInitializerError, thenNo module named 'org') — filed separately.