mirror of
https://github.com/astral-sh/uv
synced 2026-01-09 23:53:26 -05:00
Improve Python discovery source messages (#8890)
e.g. ``` ❯ echo "anyio" | cargo run -q -- pip compile - -v DEBUG uv 0.4.30 (107ab3d712024-11-07) DEBUG Starting Python discovery for a default Python DEBUG Looking for exact match for request a default Python DEBUG Searching for default Python interpreter in virtual environments, managed installations, or search path DEBUG Found `cpython-3.12.7-macos-aarch64-none` at `/Users/zb/workspace/uv/.venv/bin/python3` (virtual environment) ``` ``` ❯ cargo run -q -- pip install anyio -v DEBUG uv 0.4.30 (107ab3d712024-11-07) DEBUG Searching for default Python interpreter in virtual environments DEBUG Found `cpython-3.12.7-macos-aarch64-none` at `/Users/zb/workspace/uv/.venv/bin/python3` (virtual environment) ``` vs ``` ❯ uv pip install anyio -v DEBUG uv 0.4.30 (61ed2a2362024-11-04) DEBUG Searching for default Python interpreter in system path DEBUG Found `cpython-3.12.7-macos-aarch64-none` at `/Users/zb/workspace/uv/.venv/bin/python3` (virtual environment) ``` ``` ❯ echo "anyio" | uv pip compile - -v DEBUG uv 0.4.30 (61ed2a2362024-11-04) DEBUG Starting Python discovery for a default Python DEBUG Looking for exact match for request a default Python DEBUG Searching for default Python interpreter in managed installations or system path DEBUG Found `cpython-3.12.7-macos-aarch64-none` at `/Users/zb/workspace/uv/.venv/bin/python3` (virtual environment) ```
This commit is contained in:
@@ -4142,7 +4142,7 @@ environment is not required, uv will then search for a Python interpreter. Pytho
|
||||
interpreters are found by searching for Python executables in the `PATH` environment
|
||||
variable.
|
||||
|
||||
On Windows, the `py` launcher is also invoked to find Python executables.
|
||||
On Windows, the registry is also searched for Python executables.
|
||||
|
||||
By default, uv will download Python if a version cannot be found. This behavior can be
|
||||
disabled with the `--no-python-downloads` flag or the `python-downloads` setting.
|
||||
|
||||
Reference in New Issue
Block a user