aws-codebuild-docker-images icon indicating copy to clipboard operation
aws-codebuild-docker-images copied to clipboard

Suggestion: Shall we migrate pyenv to uv?

Open jinxiao opened this issue 7 months ago • 2 comments

We found that pyenv is quite slow, and will build the whole python from scratch which cost a lot of time and not disk efficient.

However we found uv, a new tiny tool which provides a significant performance enhancement and no need to build the python from source code. Some famous project like Pydantic, Airflow are switching to uv as default.

The homepage of uv is: https://github.com/astral-sh/uv

jinxiao avatar Apr 20 '25 15:04 jinxiao

Yes please - just having uv pre-installed would be handy.

I currently use uv to get Python on NodeJS v22 Lambda CodeBuild images, pretty neat and takes like <4seconds to install Python and make a venv. Using uv in other ways as well, but thought this was a really neat use case since the Lambda CodeBuild images are single language, but so much faster.

polothy avatar Apr 24 '25 16:04 polothy

In the long run this makes sense, but uv isn't stable in all cases yet. For example, https://github.com/astral-sh/uv/issues/1419 and https://github.com/astral-sh/uv/issues/6794.

BwL1289 avatar Jun 13 '25 21:06 BwL1289