pub struct ProjectVenvInstall {
pub venv: PathBuf,
pub project: PathBuf,
}Expand description
This binary, running from inside a project’s own virtual environment.
The distinction that matters is not “was this installed by pip” — a machine-wide
pip install is a perfectly good way to get the tool. It is “does this copy live
inside one project’s environment”, because such a copy dies with the environment,
and until it does it is a package that project’s requirements.txt has to account
for before the environment can ever be pruned.
pyvenv.cfg one directory above the script is what separates the two: every virtual
environment has one and no system install does.
Fields§
§venv: PathBufThe environment root — the directory holding pyvenv.cfg.
project: PathBufThe directory the environment sits in, which is the project in every layout anyone actually uses.
Auto Trait Implementations§
impl Freeze for ProjectVenvInstall
impl RefUnwindSafe for ProjectVenvInstall
impl Send for ProjectVenvInstall
impl Sync for ProjectVenvInstall
impl Unpin for ProjectVenvInstall
impl UnsafeUnpin for ProjectVenvInstall
impl UnwindSafe for ProjectVenvInstall
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more