mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-03 05:03:46 +00:00
Document the Python installation directory (#6227)
This commit is contained in:
parent
ea3db275a9
commit
b7c9ad981d
3 changed files with 12 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue