mirror of
https://github.com/astral-sh/uv.git
synced 2025-09-26 20:19:08 +00:00
Touchup to the project environment config section (#7038)
This commit is contained in:
parent
bbaf664c51
commit
5ca3ded53b
4 changed files with 5 additions and 5 deletions
|
@ -293,7 +293,7 @@ use [`uvx`](../guides/tools.md) or
|
||||||
managed = false
|
managed = false
|
||||||
```
|
```
|
||||||
|
|
||||||
### Custom project environment paths
|
### Configuring the project environment path
|
||||||
|
|
||||||
The `UV_PROJECT_ENVIRONMENT` environment variable can be used to configure the project virtual
|
The `UV_PROJECT_ENVIRONMENT` environment variable can be used to configure the project virtual
|
||||||
environment path (`.venv` by default).
|
environment path (`.venv` by default).
|
||||||
|
@ -310,7 +310,7 @@ the system in a broken state.
|
||||||
|
|
||||||
If an absolute path is provided and the setting is used across multiple projects, the
|
If an absolute path is provided and the setting is used across multiple projects, the
|
||||||
environment will be overwritten by invocations in each project. This setting is only recommended
|
environment will be overwritten by invocations in each project. This setting is only recommended
|
||||||
for use in CI or Docker images.
|
for use for a single project in CI or Docker images.
|
||||||
|
|
||||||
!!! note
|
!!! note
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ In addition, uv respects the following environment variables:
|
||||||
- `UV_TOOL_BIN_DIR`: Used to specify the "bin" directory where uv will install tool executables.
|
- `UV_TOOL_BIN_DIR`: Used to specify the "bin" directory where uv will install tool executables.
|
||||||
- `UV_PROJECT_ENVIRONMENT`: Use to specify the path to the directory to use for a project virtual
|
- `UV_PROJECT_ENVIRONMENT`: Use to specify the path to the directory to use for a project virtual
|
||||||
environment. See the
|
environment. See the
|
||||||
[project documentation](../concepts/projects.md#custom-project-environment-paths) for more
|
[project documentation](../concepts/projects.md#configuring-the-project-environment-path) for more
|
||||||
details.
|
details.
|
||||||
- `UV_PYTHON_INSTALL_DIR`: Used to specify the directory where uv will store managed Python
|
- `UV_PYTHON_INSTALL_DIR`: Used to specify the directory where uv will store managed Python
|
||||||
installations.
|
installations.
|
||||||
|
|
|
@ -155,7 +155,7 @@ RUN uv run some_script.py
|
||||||
!!! tip
|
!!! tip
|
||||||
|
|
||||||
Alternatively, the
|
Alternatively, the
|
||||||
[`UV_PROJECT_ENVIRONMENT` setting](../../concepts/projects.md#custom-project-environment-paths) can
|
[`UV_PROJECT_ENVIRONMENT` setting](../../concepts/projects.md#configuring-the-project-environment-path) can
|
||||||
be set before syncing to install to the system Python environment and skip environment activation
|
be set before syncing to install to the system Python environment and skip environment activation
|
||||||
entirely.
|
entirely.
|
||||||
|
|
||||||
|
|
|
@ -232,7 +232,7 @@ steps:
|
||||||
!!! tip
|
!!! tip
|
||||||
|
|
||||||
The
|
The
|
||||||
[`UV_PROJECT_ENVIRONMENT` setting](../../concepts/projects.md#custom-project-environment-paths) can
|
[`UV_PROJECT_ENVIRONMENT` setting](../../concepts/projects.md#configuring-the-project-environment-path) can
|
||||||
be used to install to the system Python environment instead of creating a virtual environment.
|
be used to install to the system Python environment instead of creating a virtual environment.
|
||||||
|
|
||||||
## Caching
|
## Caching
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue