Skip to content

Commit

Permalink
Allow Python pre-releases to be used if they are first on the PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Sep 17, 2024
1 parent 08a7c70 commit ce13e03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/uv-python/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1370,8 +1370,9 @@ impl PythonSource {
/// Whether a pre-release Python installation from the source should be used without opt-in.
pub(crate) fn allows_prereleases(self) -> bool {
match self {
Self::Managed | Self::Registry | Self::SearchPath | Self::MicrosoftStore => false,
Self::CondaPrefix
Self::Managed | Self::Registry | Self::MicrosoftStore => false,
Self::SearchPath
| Self::CondaPrefix
| Self::ProvidedPath
| Self::ParentInterpreter
| Self::ActiveEnvironment
Expand Down

0 comments on commit ce13e03

Please sign in to comment.