diff --git a/crates/uv-python/src/discovery.rs b/crates/uv-python/src/discovery.rs index 4993f7868..de4016aaf 100644 --- a/crates/uv-python/src/discovery.rs +++ b/crates/uv-python/src/discovery.rs @@ -1546,7 +1546,10 @@ impl PythonPreference { } 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, + } } }