uv/docs
FishAlchemist 26b3bfbedb
Fix the default value of python-preference in docs/reference/settings.md (#5755)
## Summary
After referring to https://github.com/astral-sh/uv/pull/5637 and doing
additional testing.
The default value in a stable state seems more reasonable to be
``only-system``. ``managed`` in preview.
```
cpython-3.11.9-windows-x86_64-none     C:\Users\name\AppData\Local\Programs\Python\Python311\python.exe

cpython-3.10.14-windows-x86_64-none    C:\Users\name\AppData\Roaming\uv\data\python\cpython-3.10.14-windows-x86_64-none\install\python.exe
cpython-3.10.11-windows-x86_64-none    C:\Users\name\AppData\Local\Programs\Python\Python310\python.exe

cpython-3.9.19-windows-x86_64-none     C:\Users\name\AppData\Roaming\uv\data\python\cpython-3.9.19-windows-x86_64-none\python.exe
```
test on uv 0.2.33 (build from
257007ccaf)
### Stable version
``uv venv -p 3.10`` is ``3.10.11`` (System Python)
``uv venv -p 3.9`` is ``No interpreter found``(3.9.19 for managed
Python)
``uv venv -p 3.9 --python-preference only-system`` is ``No interpreter
found``(fail)
``uv venv -p 3.9 --python-preference only-managed`` is
``3.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`` is ``3.11.9`` (System Python)
``uv venv -p 3.10 --preview`` is ``3.10.14``
``uv venv -p 3.10 --preview --python-preference only-managed`` is
``3.10.14``
``uv venv -p 3.10 --preview --python-preference managed`` is ``3.10.14``
``uv venv -p 3.10 --preview --python-preference system`` is ``3.10.11``
``venv -p 3.10 --preview --python-preference only-system`` is
``3.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.

![image](https://github.com/user-attachments/assets/02b81d44-1a99-4165-aca5-6ce46345b539)
2024-08-03 23:37:40 +00:00
..
.overrides/partials/integrations/analytics Migrate from MdBook to MkDocs (#5062) 2024-07-15 22:22:07 +00:00
assets Use logo in documentation (#5421) 2024-07-24 15:45:10 -05:00
concepts Better workspace documentation (#5728) 2024-08-03 08:49:09 -05:00
configuration Use prettier to format the documentation (#5708) 2024-08-02 08:58:31 -05:00
guides Improvements to the documentation (#5718) 2024-08-03 08:41:33 -05:00
js Improve copy of console command examples (#5397) 2024-07-31 14:52:02 +00:00
pip Improvements to the documentation (#5718) 2024-08-03 08:41:33 -05:00
reference Fix the default value of python-preference in docs/reference/settings.md (#5755) 2024-08-03 23:37:40 +00:00
stylesheets Generate CLI reference for documentation (#5685) 2024-08-01 16:04:16 +00:00
.gitignore Add structured documentation (#4426) 2024-06-26 11:28:42 -05:00
features.md Improvements to the documentation (#5718) 2024-08-03 08:41:33 -05:00
first-steps.md Improvements to the documentation (#5718) 2024-08-03 08:41:33 -05:00
index.md Rewrite resolver docs (#5723) 2024-08-03 08:47:11 -05:00
installation.md Improvements to the documentation (#5718) 2024-08-03 08:41:33 -05:00
platforms.md Use prettier to format the documentation (#5708) 2024-08-02 08:58:31 -05:00
requirements-insiders.in Reference the root requirements from the insiders requirements file (#5105) 2024-07-16 09:51:16 -05:00
requirements-insiders.txt Reference the root requirements from the insiders requirements file (#5105) 2024-07-16 09:51:16 -05:00
requirements.in Migrate from MdBook to MkDocs (#5062) 2024-07-15 22:22:07 +00:00
requirements.txt Migrate from MdBook to MkDocs (#5062) 2024-07-15 22:22:07 +00:00
versioning.md Add structured documentation (#4426) 2024-06-26 11:28:42 -05:00