Document the Python installation directory (#6227)

This commit is contained in:
Zanie Blue 2024-08-19 14:42:36 -05:00 committed by GitHub
parent ea3db275a9
commit b7c9ad981d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 1 deletions

View file

@ -2948,6 +2948,12 @@ pub enum PythonCommand {
Pin(PythonPinArgs),
/// Show the uv Python installation directory.
///
/// By default, Python installations are stored in the uv data directory at
/// `$XDG_DATA_HOME/uv/python` or `$HOME/.local/share/uv/python` on Unix and
/// `{FOLDERID_RoamingAppData}\uv\data\python` on Windows.
///
/// The Python installation directory may be overridden with `$UV_PYTHON_INSTALL_DIR`.
Dir,
/// Uninstall Python versions.

View file

@ -75,6 +75,7 @@ impl StateStore {
}
/// Prefer, in order:
///
/// 1. The specific state directory specified by the user.
/// 2. The system-appropriate user-level data directory.
/// 3. A `.uv` directory in the current working directory.

View file

@ -3328,7 +3328,11 @@ uv python pin [OPTIONS] [REQUEST]
### uv python dir
Show the uv Python installation directory
Show the uv Python installation directory.
By default, Python installations are stored in the uv data directory at `$XDG_DATA_HOME/uv/python` or `$HOME/.local/share/uv/python` on Unix and `{FOLDERID_RoamingAppData}\uv\data\python` on Windows.
The Python installation directory may be overridden with `$UV_PYTHON_INSTALL_DIR`.
<h3 class="cli-reference">Usage</h3>