Open jamesbraza opened 3 weeks ago
There are some tips on that here: https://docs.astral.sh/uv/concepts/projects/#build-isolation. It's still a bit of a pain though.
Ah I see, thank you! Yeah so currently installation is a two-step process:
pip install torch
pip install xformers
I was sort of hoping uv
could somehow convert that to be a one-step process, but it doesn't seem to be the case:
uv sync --extra build
build= ["torch"]
uv sync --extra xformers
no-build-isolation-package = ["xformers"]
being in tool.uv
Do you think it's a reasonable request to uv
to somehow support this use case as a one-step process? In other words, make it less of a special case from an installer's perspective
I would like it to be one-step, yeah. It's a reasonable request. It likely won't happen immediately though.
I am using
uv==0.4.16
, and there are two packages that make my life annoying because theirsetup.py
depends ontorch
:How can
uv sync
work with this scenario? Currently, it successfully makes auv.lock
, but then fails onuv sync
: