3 ms·
I wasn’t able to figure how to make a uv installed python version a global when “python” is called, at least in the current shell, as I need it in CI.
by moltar 2y ago
I wasn’t able to figure how to make a uv installed python version a global when “python” is called, at least in the current shell, as I need it in CI.
- kstrauser 2y agoThat feature's in preview now. You can run it like: uv python install --preview --default 3.13 and then you get Python 3.13 whenever you run `python` outside of an environment that declares something else.
- moltar 2y agoThank you!! Will try it tomorrow.
- kstrauser 2y agoYou bet. I was so happy to find that!
- leejoramo 2y agoThis is great news. I had hacked together some bash and fish scripts to mostly do this but they still had some rough edges. I missed that uv now had this ready for preview
- kstrauser 2y agoI just found that a couple weeks ago. I'm an end user, too. I don't have anything to do with uv development. I stumbled across it in a GitHub issue or something and passed along the info.