-
Notifications
You must be signed in to change notification settings - Fork 682
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
uv could operate on the venv it's installed in #2248
Comments
This makes some sense, but I don't see how setting the In general, I would recommend against installing I think changing this behavior as requested would have dangerous implications, e.g. if you |
Mostly because setting environment variables in
Hm. Can you elaborate? I'm doing that because I want to have a specific version of Should
Good question. I've no idea–I'm not familiar with |
You can download specific versions with the install script e.g.
You can see examples of these in the GitHub Releases page. If you need multiple versions to exist on the system, I think we'd need something like #2087 or the ability to name the executable.
We considered this. We only publish a Python package for convenience (and it has many downloads) — our users are just accustomed to installing things that way. It's definitely not our preferred method though. I think my last point around |
Got it. That's a workaround I can probably get behind.
Good point. Thanks for your time and patience. |
I wasn't able to find this request except as mentioned in #1422 (comment) — that when
uv
is installed in a venv, running it should by default operate on the venv it's installed in.This simplifies bootstrapping a little bit, as I could then simply set
UV = $(VENV)/bin/uv
in myMakefile
. I'm currently using--python
, but that's accepted only as a flag to theuv pip XXX
subcommand, and not touv
itself, so I have to splice it in everywhere I need it. I could also setVIRTUAL_ENV
in myMakefile
, but somehow that feels awkward to me.The text was updated successfully, but these errors were encountered: