mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Add installer variables to environment reference (#8874)
## Summary I decided to omit the new URL options from the installer configuration page since they're pretty niche.
This commit is contained in:
parent
eb8498d92b
commit
5eba64a641
2 changed files with 32 additions and 2 deletions
|
@ -448,7 +448,7 @@ impl EnvVars {
|
|||
#[attr_hidden]
|
||||
pub const PYTHONUTF8: &'static str = "PYTHONUTF8";
|
||||
|
||||
/// Adds directories to Python module search path (e.g., PYTHONPATH=/path/to/modules).
|
||||
/// Adds directories to Python module search path (e.g., `PYTHONPATH=/path/to/modules`).
|
||||
pub const PYTHONPATH: &'static str = "PYTHONPATH";
|
||||
|
||||
/// Used in tests to enforce a consistent locale setting.
|
||||
|
@ -528,4 +528,24 @@ impl EnvVars {
|
|||
|
||||
/// Ignore `.env` files when executing `uv run` commands.
|
||||
pub const UV_NO_ENV_FILE: &'static str = "UV_NO_ENV_FILE";
|
||||
|
||||
/// The URL from which to download uv using the standalone installer and `self update` feature,
|
||||
/// in lieu of the default GitHub URL.
|
||||
pub const UV_INSTALLER_GITHUB_BASE_URL: &'static str = "UV_INSTALLER_GITHUB_BASE_URL";
|
||||
|
||||
/// The URL from which to download uv using the standalone installer and `self update` feature,
|
||||
/// in lieu of the default GitHub Enterprise URL.
|
||||
pub const UV_INSTALLER_GHE_BASE_URL: &'static str = "UV_INSTALLER_GHE_BASE_URL";
|
||||
|
||||
/// The directory in which to install uv using the standalone installer and `self update` feature.
|
||||
/// Defaults to `~/.cargo/bin`.
|
||||
pub const UV_INSTALL_DIR: &'static str = "UV_INSTALL_DIR";
|
||||
|
||||
/// Used ephemeral environments like CI to install uv to a specific path while preventing
|
||||
/// the installer from modifying shell profiles or environment variables.
|
||||
pub const UV_UNMANAGED_INSTALL: &'static str = "UV_UNMANAGED_INSTALL";
|
||||
|
||||
/// Avoid modifying the `PATH` environment variable when installing uv using the standalone
|
||||
/// installer and `self update` feature.
|
||||
pub const INSTALLER_NO_MODIFY_PATH: &'static str = "INSTALLER_NO_MODIFY_PATH";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue