Open brunorpinho opened 8 months ago
I've investigated using uv but there are quite a few options it didn't support last time I had checked. It would be fine to make it a flag options but right now we do not have the bandwidth to implement and most importantly to test this change as much as this is warranted. If someone want to pick it up as an unstable extra feature, feel free to contribute as a PR
@brunorpinho We almost replaced pip-compile with uv. And we may replace pip install
as well.
https://github.com/windmill-labs/windmill/pull/4460
Please, allow a flag to resolve dependencies with
uv
.My idea is that when env
PIP_USE_UV = true
worker will download and cache theuv
binary and change pip install command inpython_executor.rs
. Also maps windmills extra index toUV_EXTRA_INDEX_URL
.uv
listens to envVIRTUAL_ENV
to decide the venv to install it so the executor script can pass that env so thatuv
targets the correct venv.There might be some other details that can be discussed later, but it seems to be a promissing way to accelerate python script spin up.
Thank you
References:
https://pypi.org/project/uv/ https://astral.sh/blog/uv
uv pip install --help: