Files
uv/crates/uv-interpreter/src/virtualenv.rs
T
Charlie Marsh 5fed1f6259 Use simpler pip-like Scheme for install paths (#2173)
## Summary

This will make it easier to use the paths returned by `distutils.py`
(for some cases). No code or behavior changes; just removing some fields
we don't need.
2024-03-04 15:50:13 -05:00

18 lines
509 B
Rust

use std::path::PathBuf;
use pypi_types::Scheme;
/// The layout of a virtual environment.
#[derive(Debug)]
pub struct Virtualenv {
/// The absolute path to the root of the virtualenv, e.g., `/path/to/.venv`.
pub root: PathBuf,
/// The path to the Python interpreter inside the virtualenv, e.g., `.venv/bin/python`
/// (Unix, Python 3.11).
pub executable: PathBuf,
/// The [`Scheme`] paths for the virtualenv, as returned by (e.g.) `sysconfig.get_paths()`.
pub scheme: Scheme,
}