Fix the default value of python-preference in docs/reference/settings.md #5755
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
After referring to #5637 and doing additional testing.
The default value in a stable state seems more reasonable to be
only-system
.managed
in preview.test on uv 0.2.33 (build from https://github.com/astral-sh/uv/tree/257007ccaf0912a41dfe91b534527a7b1f54e19a)
Stable version
uv venv -p 3.10
is3.10.11
(System Python)uv venv -p 3.9
isNo interpreter found
(3.9.19 for managed Python)uv venv -p 3.9 --python-preference only-system
isNo interpreter found
(fail)uv venv -p 3.9 --python-preference only-managed
is3.9.19
(success)Do not use managed Python, only use the system Python, so it can be determined as
only-system
.Preview mode
Note:
3.10.14
is managed python,3.10.11
is system python.uv venv -p 3.11 --preview
is3.11.9
(System Python)uv venv -p 3.10 --preview
is3.10.14
uv venv -p 3.10 --preview --python-preference only-managed
is3.10.14
uv venv -p 3.10 --preview --python-preference managed
is3.10.14
uv venv -p 3.10 --preview --python-preference system
is3.10.11
venv -p 3.10 --preview --python-preference only-system
is3.10.11
Prioritize the managed Python and then select the system Python, so it can be determined as
managed
.fixed #5754
Test Plan
Run website in local.
