Skip to content

Commit

Permalink
Allow managed downloads with --python-preference system (#8808)
Browse files Browse the repository at this point in the history
Closes #8804
  • Loading branch information
zanieb authored Nov 4, 2024
1 parent d82607d commit 6250b90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/uv-python/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
}

Expand Down

0 comments on commit 6250b90

Please sign in to comment.