-
Notifications
You must be signed in to change notification settings - Fork 892
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
Shims like in pyenv or rye #6598
Comments
Thanks! We plan to add this kind of behavior for Python, but likely not for other executables. I believe that's tracked here: #6265. |
(Gonna merge into that other issue.) |
That is great! Is there a reason why you plan to support it only for the python executable? |
@martenlienen like.. what other executables? We install tools separately and don't need shims to manage them. |
An example would be torchrun from pytorch, which I usually use as a library, but it also comes with this |
@zanieb Another example would be our experiment management library |
Yeah until we have project-level tools (as described in #3560), I think a development dependency and |
Does uv plan to add shims as they exist in rye or pyenv? With this, I mean a bunch of executables that dispatch to the correct executable when called depending on a local
.python-version
file or an environment variable. For example, in pyenv I can runcd ~/src/some-project; pyenv local project-venv
and then, whenever I change into~/src/some-project
or a subdirectory, runningpython
or another executable from some package will automatically dispatch to the environmentproject-venv
without me having to explicitly activate it.The text was updated successfully, but these errors were encountered: