Skip to content
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

Please support (and respect) --link-mode in uv python install #12298

Open
nbelakovski opened this issue Mar 18, 2025 · 1 comment
Open

Please support (and respect) --link-mode in uv python install #12298

nbelakovski opened this issue Mar 18, 2025 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or improvement to existing functionality

Comments

@nbelakovski
Copy link

Summary

A number of uv commands support the --link-mode option, but not python install. As a result when I mount a directory with a venv inside docker for local development, it can't python python because it's symlinked to a directory that's not in the container.

It seems like it should be straightforward to add this to python install? And of course if I run uv sync --link-mode <option> then the python it chooses to install or use should respect that as well.

Does this make sense and is it a reasonable request?

Example

No response

@nbelakovski nbelakovski added the enhancement New feature or improvement to existing functionality label Mar 18, 2025
@zanieb
Copy link
Member

zanieb commented Mar 18, 2025

To pick at the details a bit here: this isn't a python install behavior, it's virtual environment behavior. Copying the Python installation into virtual environments makes them "full" environments — not virtual. We'd need a larger concept than link-mode to represent this since we wouldn't actually be creating virtual environments anymore.

You can track support for this in #7865

@zanieb zanieb added the duplicate This issue or pull request already exists label Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or improvement to existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants