docker-library / python

Docker Official Image packaging for Python
https://www.python.org/
MIT License
2.5k stars 1.04k forks source link

Support platform darwin/arm64 #929

Open reneleonhardt opened 1 month ago

reneleonhardt commented 1 month ago

The official Python image is amazing, thank you!

Would it be possible to provide builds for more platforms? GitHub Actions can easily access macos-latest for example. Docker buildx / BuildKit / containerd / Go support many platforms including darwin/arm64: https://github.com/containerd/containerd/blob/v1.7.17/platforms/platforms.go#L96

I was able to easily compile scripts with Nuitka on platforms this base image already offers (like linux/amd64 and arm64). If python would also push darwin/arm64 manifests then the Python ecosystem could offer native builds for more Desktop users. In times of llama.cpp and DuckDB I think more possibilities to build native experiences are crucial for the community to spread forward into new territories and use cases.

tianon commented 1 month ago

Unfortunately, darwin is not supported in https://github.com/docker-library/official-images, and I'm not actually sure what it would even mean for it to be. :thinking:

As far as I know, macOS containers are not currently (or planned to be) a thing. I have seen several very clever/cute hacks over the years (with varying degrees of "macOS" behavior), but nothing that seemed like it was gaining much momentum. :see_no_evil: