From ea3db275a91417560e1b783968c045b7456ffa3b Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 19 Aug 2024 14:22:58 -0500 Subject: [PATCH] Link to persistent configuration options in Python versions document (#6226) --- docs/concepts/python-versions.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/concepts/python-versions.md b/docs/concepts/python-versions.md index 2d91650b6..252e7b685 100644 --- a/docs/concepts/python-versions.md +++ b/docs/concepts/python-versions.md @@ -165,17 +165,24 @@ version download. By default, uv will automatically download Python versions when needed. -The `python-downloads` option can be used to disable this behavior. By default, it is set to -`automatic`; set to `manual` to only allow Python downloads during `uv python install`. +The [`python-downloads`](../reference/settings.md#python-downloads) option can be used to disable +this behavior. By default, it is set to `automatic`; set to `manual` to only allow Python downloads +during `uv python install`. + +!!! tip + +The `--python-downloads` option can be passed to any uv command, or it can be set in a +[persistent configuration file](../configuration/files.md) to change the default behavior. ## Adjusting Python version preferences By default, uv will attempt to use Python versions found on the system and only download managed interpreters when necessary. -The `python-preference` option can be used to adjust this behavior. By default, it is set to -`managed` which prefers managed Python installations over system Python installations. However, -system Python installations are still preferred over downloading a managed Python version. +The [`python-preference`](../reference/settings.md#python-preference) option can be used to adjust +this behavior. By default, it is set to `managed` which prefers managed Python installations over +system Python installations. However, system Python installations are still preferred over +downloading a managed Python version. The following alternative options are available: