-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Upgrading to Python 3.12 and building a universal app (Intel + Apple Silicon) #560
Conversation
The build works on both Intel and Apple Silicon: https://github.com/typemytype/drawbot/actions/runs/7681596610
Intel:
Apple Silicon:
|
gif and mp4 export work, but the embedded tools are still Intel. We should track down Universal builds for ffmpeg, gifsicle, potrace, etc. |
If it wasn't for PIL, DrawBot would still run on macOS 10.10...
I'm trying to find out what it is lowest macOS that current PIL/Pillow is expected to run on: python-pillow/Pillow#6862 (comment) |
Hm, this seems an official source for ffmpeg, and they don't seem to intend to provide Apple Silicon binaries: https://evermeet.cx/ffmpeg/apple-silicon-arm Tangentially, I found this blog post that shows how to speed up h264 encoding on Apple Silicon: https://www.learnwithjason.dev/blog/hardware-acceleration-ffmpeg-apple-silicon/ |
super mega cool!! that statement related to ffmpeg seems not sustainable in the long run... there will be no intel mac in a few years... a quick test leads to this error, it will not be the only one I guess: from fontTools import bezierTools
this happens cause pip checks the arch, you force the arch somewhere, if I remember it correctly |
Argh yes, it is because if x84 and universal2 wheels are available, it picks x84 :(
We may have to work around it with a script downloading wheels from pypi directly. |
Interesting (and sad) to see that providing binaries for this hugely successful tool seems to depend on one guy... |
I think this may be a possible approach:
|
I did that and it seems to work correctly on M123 and Intel, down to macOS 10.10: |
@typemytype, this is ready for review/merge. |
No description provided.