Stop the pipx virtualenvs depending on the system Python #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "uv-managed-python"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Same one-line fix as
ansible_role_container_metricsPR #2, for DWA-71.What broke
ansible-core,ansible-lintandyamllintall failed on river withModuleNotFoundError, somise run lintcould not pass in any repository. The tools are uv virtualenvs that had been built against/usr/bin/python3; river went 3.12 → 3.14, the packages stayed inlib/python3.12/site-packages, and the binaries sat there intact while importing nothing.The fix
UV_PYTHON_PREFERENCE = "only-managed"— uv downloads and owns the interpreter, so an OS upgrade cannot orphan it.Verified both directions: with
only-systemthe same install lands on/usr/bin(3.14.4), withonly-managedon uv's owncpython-3.13. mise does pass the variable through to tool installs, which was the part worth checking.Pinning
pythonin[tools]does not work — uv ignores mise's interpreter and picks its own.Note
The tools were already reinstalled by hand, so nothing is broken while this sits unmerged; this prevents the next occurrence.