mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-01 20:31:12 +00:00
Allow managed downloads with --python-preference system (#8808)
Closes https://github.com/astral-sh/uv/issues/8804
This commit is contained in:
parent
d82607d038
commit
6250b900b7
1 changed files with 4 additions and 1 deletions
|
|
@ -1546,7 +1546,10 @@ impl PythonPreference {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn allows_managed(self) -> bool {
|
pub(crate) fn allows_managed(self) -> bool {
|
||||||
matches!(self, Self::Managed | Self::OnlyManaged)
|
match self {
|
||||||
|
Self::OnlySystem => false,
|
||||||
|
Self::Managed | Self::System | Self::OnlyManaged => true,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue