-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Equivalent of UV_PROJECT_ENVIRONMENT on uv.toml #12587
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
Comments
I don't think we want to support this in the |
I think #1495 is a better fit for this use-case |
I get the distinction between "user" and "project" settings in typical development environments. However, in VDI (and I suspect many other corporate environments), there are often strict controls on where users can write files. This makes the ability to sync to an aribtrary, pre-determined location a helpful feature rather than a problem. #1495 would be a more elegant solution to this problem, but I hoped supporting the already existing environment variable through the toml configuration might be a simpler interim approach. |
Our Python environment depends on conda components, such as specific versions of OpenSSL, the compilation toolchain, etc. Therefore, we create environments using conda and handle this situation by specifying We have tried using pixi, but it is not suitable for us. Compared to uv, it lacks many features; for example, it does not support relative path dependencies, it can only build conda packages, and its dependency resolution prioritizes conda packages over PyPI packages. Since we must work on the Windows platform, using tools like direnv to set environment variables is also not feasible. We hope for a local, per-project implementation solution that only requires configuration once. |
Summary
Current Behavior
Afaik, the virtual environment path can only be configured via the
UV_PROJECT_ENVIRONMENT
environment variable.Proposed Enhancement
Add support for configuring the virtual environment path in
uv.toml
and/orpyproject.toml
configuration files.Example configuration:
Use Case & Motivation
git clone
uv sync
The text was updated successfully, but these errors were encountered: