Skip to content
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

support python 3.10 #1133

Open
mrchypark opened this issue Sep 19, 2022 · 15 comments
Open

support python 3.10 #1133

mrchypark opened this issue Sep 19, 2022 · 15 comments

Comments

@mrchypark
Copy link

now distroless python3 is 3.9 version.

any plan to python 3.10 support?

or, How can I build python 3.10 image for personal use?

@loosebazooka
Copy link
Member

is 3.10 is on debian11, we can swap about 3.9 for 3.10

@mrchypark
Copy link
Author

@loosebazooka good news :)

@loosebazooka
Copy link
Member

Sorry that was a question... is it?

@mrchypark
Copy link
Author

Oh, you question to me about python 3.10 is on debian11?

I don't know. let's find out.

@mrchypark
Copy link
Author

@ericofusco
Copy link
Contributor

ericofusco commented Oct 22, 2022

Debian is always behind with python in stable. It would be great if distroless ships python independently without relying on Debian releases (Similar to what's done with Node), so we could have the latest patches and multiple releases (3.9, 3.10).

The limitation is that python doesn't provide any binaries, need to compile.

@loosebazooka I wonder if it would be doable to build python from source in the CI environment and maintain something with bazel. I'm happy to give it a try if possible.

It needs gcc and some source packages to build few common dependencies.

@ReillyBrogan
Copy link

Sounds to me like it should be the responsibility of the Python project to add distroless variants of all of their supported Python versions given that they already support a wide matrix of Python versions on most common distribution images. Otherwise all you're doing is pushing a lot of maintenance and testing onto the Distroless developers when the Python project already has significant CI and tooling setup around supporting their existing images.

@loosebazooka
Copy link
Member

That would be nice. Python support is still in experimental because we have to do a few weird things to get it to work. Thats not to say it's not up to date.. it is. The build is just a bit strange. If we could get someone from the python project to help out, it would be very nice.

@dlorenc
Copy link
Contributor

dlorenc commented Oct 27, 2022

Shameless plug, but the Python wolfi image is built with python 3.10: https://github.com/wolfi-dev/os/blob/main/python3.yaml

You can try it at cgr.dev/chainguard-images/python

@goncafab
Copy link

goncafab commented Dec 19, 2022

Any update regarding this? We'd also like to migrate to 3.10 but not having to do a custom implementation moving away from the "official" distroless images.

@Corfucinas
Copy link

It would be amazing to have support for 3.10 and 3.11

@dlorenc
Copy link
Contributor

dlorenc commented Jan 5, 2023

The architecture of this repo/project means that they can't really ship versions that aren't already in debian. Bookworm is shipping 3.10, but this repo is still on bullseye.

The alternative here: https://github.com/chainguard-images/images/tree/main/images/python/configs based on Wolfi instead of debian is currently shipping 3.11 but we're working on support for multiple versions at once. Please let me know if you want to try that or run into any issues. The image is at cgr.dev/chainguard/python

@snorfalorpagus
Copy link

#1337

Debian 12 (Bookworm) has been released, and it looks like it ships with Python 3.11.

https://packages.debian.org/bookworm/python3

@ding-ma
Copy link

ding-ma commented Jul 13, 2023

I have been building python 3.9 to 3.11 containers with deadsnake python releases. They are meant for ubuntu but they are perfectly compatible with debian

@HoangNguyen689
Copy link

Any updates on when will the python 3.12 be supported?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants