5fed1f6259
## 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.
18 lines
509 B
Rust
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,
|
|
}
|