-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
Installing hatch
masks my globally installed uv
#1520
Comments
Did you install using the binary? |
Hatch or |
Have you tried this? https://hatch.pypa.io/latest/how-to/environment/select-installer/#externally-managed |
I didn't know about that. Will give that a go, thanks! |
Does that suffice? |
Testing timeframes are likely measured in weeks - it's not causing any actual problems at present so isn't a super high priority... |
Is that within a hatch environment specifically? Or on the host? If it is on the host, it's probably due to Otherwise, in a hatch shell you probably can access $ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
$ cd /tmp && hatch shell --name 3.11
$ python --version
Python 3.12.3
# Fails due to modified PATH:
$ hatch --version
bash: /root/.local/share/pyapp/hatch/1303662642487178586/1.11.0/python/bin/hatch: cannot execute: required file not found
$ /usr/local/bin/hatch --version
Hatch, version 1.11.0
# UV is available however:
$ uv --version
uv 0.1.44
# hatch environment and hatch install location are given precedence for resolving binaries:
$ echo $PATH
/root/.local/share/hatch/env/virtual/opt/y8366zdl/opt/bin:/root/.local/share/pyapp/hatch/1303662642487178586/1.11.0/python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin That happens with the
|
I use the
uv
package manager and have it globally installed as a default tool, available anywhere.When I install
hatch
, my globally installeduv
is masked by the version required byhatch
.It's not a big problem as
hatch
isn't constraininguv
, but it's worth considering if there's a way to not mask a globally installed version.The text was updated successfully, but these errors were encountered: