Is there a plan to add a `uv` location specifier f...
# general
h
Is there a plan to add a
uv
location specifier for the
python_bootstrap.search_path
property similar to
<PYENV>
? It would be nice for Pants to find
uv
-installed python automatically without having to manually set a dir to search in, since
uv
installs to different subdirs e.g.
.local/share/uv/python/cpython-3.10.15-macos-aarch64-none/bin/python3.10
. Currently I’m using
uv python install --preview
to install to
~/.local/bin
or asking users to set symlinks to a new dir.
h
No active plan that I am aware of, but I imagine it would not be complicated to add, if you’re feeling frisky 🙂
a
Interested in this as well. Would it be possible to develop this as a plugin? From a rapid check on the source code, it seems that
<PYENV>
is hardcoded...
c
I'm not sure if it is straightforward as a plugin for the reasons you mentioned. I would expect it to be possible though to write a new Python provider a-la pyenv or pbs that just looks in that one place. I think if you have
grep
-ed to that string you are probably a fair bit of the way to a PR that adds it to
main
. Let me know if I can offer more guidance.
🙇 1
h
FYI I have started a branch to add this functionality but can’t say when I’ll find the time to finish it off. Will update here when I do.
💯 1