build-image icon indicating copy to clipboard operation
build-image copied to clipboard

Latest python version

Open arecker opened this issue 3 years ago • 14 comments

Hello! The python versions available on the netlify build image could use some love. The current stable version is 3.9.6, but the highest netlify goes is 3.7. Any chance you could update it?

arecker avatar Aug 07 '21 17:08 arecker

Edit: default branch of xenial confused me, as focal is what all buildimages use, and if you check the supported software, python 3.8 is listed. https://github.com/netlify/build-image/blob/focal/included_software.md

sambacha avatar Aug 16 '21 07:08 sambacha

Any plans to add 3.10?

Stanzilla avatar Feb 07 '22 09:02 Stanzilla

Are you able to install newer versions by using the PYTHON_VERSION environment variable or one of the other options? https://docs.netlify.com/configure-builds/manage-dependencies/#python

kitop avatar Aug 24 '22 11:08 kitop

That envvar does not install arbitrary version, it only selects one of the available options.

merwok avatar Aug 24 '22 14:08 merwok

3.11 would be nice!

Stanzilla avatar Nov 02 '22 05:11 Stanzilla

Python 3.10 and/or python3.11 would be nice https://answers.netlify.com/t/python-3-10-3-11-or-newer-in-netlify-ci/78648

TruncatedDinoSour avatar Nov 06 '22 15:11 TruncatedDinoSour

We're looking into improving version support in general, but don't have any ETA for it.

Have you tried using Homebrew to install these newer versions?

kitop avatar Nov 07 '22 10:11 kitop

We're looking into improving version support in general, but don't have any ETA for it.

Have you tried using Homebrew to install these newer versions?

don't ya think it's gonna waste a lot of build minutes though

TruncatedDinoSour avatar Nov 07 '22 14:11 TruncatedDinoSour

We're looking into improving version support in general, but don't have any ETA for it.

Have you tried using Homebrew to install these newer versions?

I don't think that works well on Linux right now and also what ^ they said.

Stanzilla avatar Nov 07 '22 22:11 Stanzilla

We're looking into improving version support in general, but don't have any ETA for it. Have you tried using Homebrew to install these newer versions?

I don't think that works well on Linux right now and also what ^ they said.

Yeah, homebrew is meant of mac and it works kinda garbo on Linux, especially a distro like Ubuntu, I think the devs should just supply the latest image(s) (potentially even automating this updating process ?), or even let users to set an arbitrary python version (maybe it could be like:

if build.SET_PYTHON_VERSION not in IMAGE_DB:
    logging.log(f"{SET_PYTHON_VERSION!r} not in saved images database, please wait for us to set up the image on our database, this will take around 20 minutes")
    build.fail()
    IMAGE_DB.save(create_image(SET_PYTHON_VERSION))
else:
    build()

)

TruncatedDinoSour avatar Nov 08 '22 12:11 TruncatedDinoSour

Hello. Any news about this? I'm afraid that, if time pass, my dependencies become unusable because of this.

Mara-Li avatar Dec 09 '22 17:12 Mara-Li

3.11 would be great, just for this:

"Python 3.11 is between 10-60% faster than Python 3.10. On average, we measured a 1.25x speedup on the standard benchmark suite." https://docs.python.org/3/whatsnew/3.11.html

jarofgreen avatar Dec 19 '22 07:12 jarofgreen

Python 3.10+ is a must for my use case:

I use netlify to host Sphinx-powered documentation for my OSS projects. The issue is that I use the new style of type annotations (generics for built-in types and union operator) that require Python 3.10+. The project itself works on Python 3.8+ but Sphinx should be able to parse type annotations to properly render links to internal types in them. And it cannot be done on Python 3.8 or 3.9. I could rewrite all type annotations to the old style just for netlify but that's not cool.

orsinium avatar Jan 21 '23 09:01 orsinium

Python 3.10+ is a must for my use case:

I use netlify to host Sphinx-powered documentation for my OSS projects. The issue is that I use the new style of type annotations (generics for built-in types and union operator) that require Python 3.10+. The project itself works on Python 3.8+ but Sphinx should be able to parse type annotations to properly render links to internal types in them. And it cannot be done on Python 3.8 or 3.9. I could rewrite all type annotations to the old style just for netlify but that's not cool.

3.11 and up would be nice bc of the performance improvements

TruncatedDinoSour avatar Jan 21 '23 11:01 TruncatedDinoSour