From 57825e8d627f4265071efb5a33480190e6966017 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 7 Oct 2024 21:00:33 -0400 Subject: [PATCH] docs: note about uv reinstall (#863) --- docs/usage.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/usage.rst b/docs/usage.rst index 18fc0f7a..ab9daead 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -156,6 +156,11 @@ Note that using this option does not change the backend for sessions where ``ven as ``uv pip`` is used to install programs instead. If you need to manually interact with pip, you should install it with ``session.install("pip")``. + Also, uv tries very hard to cache, so you might want + ``--reinstall-package=`` in your pip install command for the local + package, or preferably set ``tool.uv.reinstall-package`` in your + pyproject.toml/uv.toml. + Backends that could be missing (``uv``, ``conda``, ``mamba``, and ``micromamba``) can have a fallback using ``|``, such as ``uv|virtualenv`` or ``micromamba|mamba|conda``. This will use the first item that is available on the users system. If you need to check to see which backend was selected, you can access it via