uv: Installing with `uv` doesn't setup cli entrypoints
Pretty straightforward, I wanted to start using ruff
and uv
but when I installed uv
then ruff
I didn’t get a ruff
executable as expected. I ended up reinstalling it with pip
which setup whatever entrypoint was missing.
I attempted it with another library (pre-commit
) and got the same:
$ uv pip install pre-commit
...
$ pre-commit
bash: pre-commit: command not found
$ pip install pre-commit
Requirement already satisfied: pre-commit in /Users/alexander/.pyenv/versions/3.10.7/envs/venv-3.10.7/lib/python3.10/site-packages (3.6.1)
Requirement already satisfied: cfgv>=2.0.0 in /Users/alexander/.pyenv/versions/3.10.7/envs/venv-3.10.7/lib/python3.10/site-package
$ pre-commit
[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /Users/alexander/.cache/pre-commit/patch1708173389-43374.
[INFO] Restored changes from /Users/alexander/.cache/pre-commit/patch1708173389-43374.
...
This is running in a virtualenv setup by pyenv, activated with a .python-version
file (so it auto-activates when I enter the folder). I installed uv
into the project with pip
first.
About this issue
- Original URL
- State: open
- Created 4 months ago
- Comments: 16 (7 by maintainers)
No worries, I’m surprised no one else has encountered it (at least enough to find the thread and comment on it 😉)
Ah sorry, I don’t think we’ve tried to fix this one specifically yet! Working our way through the issue tracker!