Merged
Conversation
- `cgi` was removed in python 3.13 causing an import error
- `objc` is no longer reexported by Foundation so pull it in manually
- A number of the .so files installed by PyObjC trip up Xcode's `/usr/bin/strip`, failing with the error: `internal error: reloc_has_pair() called with unknown cputype (18)` if `COPY_STRIP_PHASE` is set to `YES` - it's not clear to me whether this is a (temporary?) bug in Xcode 16.3 or something that should be fixed in the Python.framework build process…
Contributor
|
Sure thing, will give this a try and let you know 👍 |
Contributor
- Xcode was objecting to the legacy fat binaries in the prebuilt dirs - now keeping only the `main-universal2` binary and reenabling symbol stripping in the production build process
Member
Author
|
Thanks so much for tracking that down. I added a step to the Python.framework Makefile that deletes all the non- |
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.

This PR tries to update PyObjC and the app's embedded Python interpreter to their current releases (as of May 2025), ideally without needing to change the minimum supported macOS version:
Getting
python3 setup.py appto run successfully required disabling the strip-symbols build step (a4fcc8e), leading to a slightly larger final app bundle. It would be nice to be able to reenable this, but I haven't been able to figure out what's causing the error (nor why the files it's having trouble with report containing PPC & x86 but not ARM code).@flimsyhat, would you mind giving these changes a try and seeing if they build successfully for you (whether as a module for python 3.9+ or as an app)?