Repository navigation
Feat: iOS app bundle carries the stdlib and the python/ payload - #89
Merged
Merged
Conversation
…e Py_Initialize (#59)
…le probe line to the sample (#59) User-authored files, minimal edits flagged in the PR: the pbxproj replaces the two broken Python phases with one install-python.sh phase; MainViewController gains one DEMO 8 line that imports a stdlib extension and the payload so the bundle proof is observable.
Resolve SPEC: #77 took L-10, so the iOS bundle entry becomes L-11 (references renumbered). Fix a nested-comment opener in IosPythonHome.kt's KDoc ('lib-dynload/*.so') that Kotlin reads as an unclosed comment.
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 #59
Feature added (SPEC L-11)
IosPythonHomeLayout+ per-slicestageIosPythonHome_*andstageIosPythonHomeForXcode(reads EFFECTIVE_PLATFORM_NAME/ARCHS, refuses a universal ARCHS naming ONLY_ACTIVE_ARCH); excludes test/, idlelib, tkinter, turtledemo, ensurepip, pycache.tools/xcode/install-python.sh(set -euo pipefail): copies the stdlib to<app>/python-multiplatform-home/and the payload (PYTHON_PAYLOAD_DIRorPYTHON_PAYLOAD_TASK) to<app>/python/; every extension module becomesFrameworks/<module>.frameworkwith a .fwork placeholder (BeeWare/CPython AppleFrameworkLoader), signed.Verification (coordinator, after merging develop): plugin 265/0, desktopTest 590/0, ksp artifact 35/0, app 70/0, compose 115/0; androidNative, iosSimulatorArm64 (main+test) compile OK; staging OK and universal ARCHS refused; xcodebuild OK; bundle: os.py + example_py present, 67 .fwork, 0 loose .so, json.framework + Python.framework, codesign --verify --deep --strict OK, 98 MB. On an iPhone 16 / iOS 26.5 simulator with no SIMCTL_CHILD* vars:
DEMO 1 runtime | 3.14.7 · sys.platform=ios, proxies installed, andDEMO 8 bundleshows the payload greeting,_json.__file__= …/PythonDemo.app/python-multiplatform-home/lib/python3.14/lib-dynload/_json.cpython-314-iphonesimulator.fwork,example_py.__file__= …/PythonDemo.app/python/example_py/init.py, sys.prefix = …/PythonDemo.app/python-multiplatform-home, sys.executable = …/PythonDemo.app/PythonDemo.