-
-
Notifications
You must be signed in to change notification settings - Fork 150
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 executable not found when installed with pipx install nox[uv]
#791
Comments
nox[uv]
pipx doesn't include apps of dependent packages by default. Workaround:
|
Some options:
Option 1 puts the burden on the user, and it puts a bunch of unrelated apps on Option 2 is what we do for virtualenv but incurs unnecessary overhead on startup. Option 3 is a bit messy but would work out of the box. (Only Windows installations don't have the interpreter next to entry-point scripts, but those would be covered by (I guess there's also option 4: Drop the extra in a quick follow-up release? I don't know if there's a five-second rule for backward compatibility.) Proposal: option 3 |
|
nox[uv]
pipx install nox[uv]
Current Behavior
The following exception is raised when a global
uv
installation is not available.nox/nox/sessions.py
Line 790 in 4c8e891
The underlying cause seems to be
shutil.which("uv")
not being able to find uv installed alongside nox.nox/nox/virtualenv.py
Line 563 in 4c8e891
Expected Behavior
Installing
nox[uv]
is sufficient to use uv as a backend, without relying on a global uv installation.Steps To Reproduce
nox[uv]
uv
as a venv backend, for example by settingnox.options.default_venv_backend = "uv"
in the NoxfileEnvironment
Anything else?
No response
The text was updated successfully, but these errors were encountered: