uv_pypi_types/
scheme.rs

1use std::path::PathBuf;
2
3use serde::{Deserialize, Serialize};
4
5/// The paths associated with an installation scheme, typically returned by `sysconfig.get_paths()`.
6///
7/// See: <https://github.com/pypa/pip/blob/ae5fff36b0aad6e5e0037884927eaa29163c0611/src/pip/_internal/models/scheme.py#L12>
8///
9/// See: <https://docs.python.org/3.12/library/sysconfig.html#installation-paths>
10#[derive(Debug, Deserialize, Serialize, Clone)]
11pub struct Scheme {
12    pub purelib: PathBuf,
13    pub platlib: PathBuf,
14    pub scripts: PathBuf,
15    pub data: PathBuf,
16    pub include: PathBuf,
17}