uv/crates/uv-python/src
Charlie Marsh 2fad82c735
Set base executable when returning virtual environment (#11209)
## Summary

I'm not sure that this has much of an effect in practice, but currently,
when we return a virtual environment, the `sys_base_executable ` of the
parent ends up being retained as `sys_base_executable` of the created
environment. But these can be, like, subtly different? If you have a
symlink to a Python, then for the symlink, `sys_base_executable` will be
equal to `sys_executable`. But when you create a virtual environment for
that interpreter, we'll set `home` to the resolved symlink, and so
`sys_base_executable` will be the resolved symlink too, in general.
Anyway, this means that we should now have a consistent value between
(1) returning `Virtualenv` from the creation routine and (2) querying
the created interpreter.
2025-02-04 22:32:47 +00:00
..
sysconfig Remove trailing commas before brackets (#10740) 2025-01-18 19:56:46 +00: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 Allow discovering virtual environments from the first interpreter found on the `PATH` (#11218) 2025-02-04 15:41:37 -06:00
downloads.inc Update `riscv64` Python downloads to allow install on `riscv64gc` (#10937) 2025-01-24 09:33:29 -06:00
downloads.inc.mustache Allow download of Python distribution variants with newer CPU instruction sets (#9781) 2024-12-10 14:26:45 -06:00
downloads.rs Update `uv python install --reinstall` to reinstall all previous versions (#11072) 2025-01-30 10:08:06 -06:00
environment.rs Avoid resolving symbolic links when querying Python interpreters (#11083) 2025-01-30 10:10:33 -06:00
implementation.rs Prefer Python executable names that match the request over default names (#9066) 2024-11-13 10:00:23 -06:00
installation.rs Allow fallback to Python download on non-critical discovery errors (#10908) 2025-01-23 22:37:02 +00:00
interpreter.rs Set base executable when returning virtual environment (#11209) 2025-02-04 22:32:47 +00:00
lib.rs Use base Python for cached environments (#11208) 2025-02-04 17:23:06 -05:00
libc.rs Consistently write log messages with capitalized first word (#11111) 2025-01-30 18:56:46 +00:00
macos_dylib.rs Install and remove managed Python to and from the Windows Registry (PEP 514) (#10634) 2025-01-23 14:13:41 +00:00
managed.rs Install and remove managed Python to and from the Windows Registry (PEP 514) (#10634) 2025-01-23 14:13:41 +00:00
microsoft_store.rs Install and remove managed Python to and from the Windows Registry (PEP 514) (#10634) 2025-01-23 14:13:41 +00:00
platform.rs Install and remove managed Python to and from the Windows Registry (PEP 514) (#10634) 2025-01-23 14:13:41 +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
python_version.rs Introduce a `--fork-strategy` preference mode (#9868) 2024-12-13 16:05:07 -05:00
target.rs Add `uv-` prefix to all internal crates (#7853) 2024-10-01 20:15:32 -04:00
version_files.rs Discover and respect `.python-version` files in parent directories (#6370) 2024-11-07 14:29:54 -06:00
virtualenv.rs Set base executable when returning virtual environment (#11209) 2025-02-04 22:32:47 +00:00
windows_registry.rs Install and remove managed Python to and from the Windows Registry (PEP 514) (#10634) 2025-01-23 14:13:41 +00:00