uv/crates/uv-python/src
Zanie Blue 893257bb0b
Refactor `uv python install` (#8701)
Pulling out of https://github.com/astral-sh/uv/pull/8650 for
readability.

Trying to clean this up to simplify extensions in the future. This is
not a strict refactor, there are behavioral changes here.

- Adds some structs for managing state.
- Addresses some likely inconsistent behavior for weird edge-cases. 
- We fill platform information before checking if a request is
satisfied.
- We error earlier if we can't find a download for the request, i.e.,
even if you somehow have it installed.
- Only reports versions as uninstalled if a download actually replaces
them.
- Moves some of the default output to tracing messages.
- Even if an installation was already satisfied, we'll check that it is
setup properly
2024-10-30 21:28:08 +00:00
..
discovery chore: Move all integration tests to a single binary (#8093) 2024-10-11 16:41:35 +02:00
interpreter chore: Move all integration tests to a single binary (#8093) 2024-10-11 16:41:35 +02:00
libc chore: Move all integration tests to a single binary (#8093) 2024-10-11 16:41:35 +02:00
python_version chore: Move all integration tests to a single binary (#8093) 2024-10-11 16:41:35 +02:00
cpuinfo.rs Fix hard and soft float libc detection for managed Python distributions on ARM (#8498) 2024-10-29 23:46:21 +00:00
discovery.rs Install versioned Python executables into the bin directory during `uv python install` (#8458) 2024-10-30 14:13:20 +00:00
downloads.inc Fix a typo in `fetch-download-metadata.py` (#8515) 2024-10-24 07:33:14 -05:00
downloads.inc.mustache Fix a typo in `fetch-download-metadata.py` (#8515) 2024-10-24 07:33:14 -05:00
downloads.rs Refactor `uv python install` (#8701) 2024-10-30 21:28:08 +00:00
environment.rs Add `uv-` prefix to all internal crates (#7853) 2024-10-01 20:15:32 -04:00
implementation.rs Require opt-in to use alternative Python implementations (#7650) 2024-09-24 12:52:15 -05:00
installation.rs Install versioned Python executables into the bin directory during `uv python install` (#8458) 2024-10-30 14:13:20 +00:00
interpreter.rs Add support for managed installs of free-threaded Python (#8100) 2024-10-14 15:18:52 -05:00
lib.rs Fix hard and soft float libc detection for managed Python distributions on ARM (#8498) 2024-10-29 23:46:21 +00:00
libc.rs chore: Move all integration tests to a single binary (#8093) 2024-10-11 16:41:35 +02:00
managed.rs Install versioned Python executables into the bin directory during `uv python install` (#8458) 2024-10-30 14:13:20 +00:00
microsoft_store.rs chore: unify all env vars used (#8151) 2024-10-14 16:48:13 -05:00
platform.rs Fix hard and soft float libc detection for managed Python distributions on ARM (#8498) 2024-10-29 23:46:21 +00:00
pointer_size.rs Change "toolchain" to "python" (#4735) 2024-07-03 07:44:29 -05:00
prefix.rs Add `uv-` prefix to all internal crates (#7853) 2024-10-01 20:15:32 -04:00
py_launcher.rs Update windows-registry to 0.3.0 (#8696) 2024-10-30 12:00:33 +00:00
python_version.rs chore: Move all integration tests to a single binary (#8093) 2024-10-11 16:41:35 +02:00
target.rs Add `uv-` prefix to all internal crates (#7853) 2024-10-01 20:15:32 -04:00
tests.rs chore: unify all env vars used (#8151) 2024-10-14 16:48:13 -05:00
version_files.rs Surface dedicated errors for `.python-version` conflict with `requires-python` (#7218) 2024-09-09 17:12:53 -04:00
virtualenv.rs chore: unify all env vars used (#8151) 2024-10-14 16:48:13 -05:00