-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-135966: Modify iOS testbed to make app_packages a site directory #135967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
!buildbot iOS |
🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit 1baae68 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F135967%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me
Thanks @freakboy3742 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…tory (pythonGH-135967) The iOS testbed now treats the app_packages folder as a site folder. This ensures it is on the path, but also ensures any .pth files are processed on app startup. (cherry picked from commit b38810b) Co-authored-by: Russell Keith-Magee <[email protected]>
Sorry, @freakboy3742, I could not cleanly backport this to
|
GH-136012 is a backport of this pull request to the 3.14 branch. |
…e directory (pythonGH-135967) The iOS testbed now treats the app_packages folder as a site folder. This ensures it is on the path, but also ensures any .pth files are processed on app startup. (cherry picked from commit b38810b) Co-authored-by: Russell Keith-Magee <[email protected]>
GH-136013 is a backport of this pull request to the 3.13 branch. |
…ctory (GH-135967) (#136012) The iOS testbed now treats the app_packages folder as a site folder. This ensures it is on the path, but also ensures any .pth files are processed on app startup. (cherry picked from commit b38810b) Co-authored-by: Russell Keith-Magee <[email protected]>
Modifies the startup of the iOS testbed so that the
app_packages
folder is treated as a site directory.This ensures that
.pth
files that are installed by packaged (such as the setuptools "distutils_hack") will not be processed.This surfaced during testing of an iOS patch for Pillow, which uses pyroma; pyroma depends on distutils; but because the .pth file installed by setuptools isn't processed, distutils can't be imported, and so neither can pyroma.
Also documents this as a likely integration requirement for anyone embedding CPython on iOS.
📚 Documentation preview 📚: https://cpython-previews--135967.org.readthedocs.build/