Skip to content

Commit

Permalink
Use the first pre-release discovered when only pre-release Python ver…
Browse files Browse the repository at this point in the history
…sions are available (#7666)
  • Loading branch information
zanieb authored Sep 24, 2024
1 parent a53ddaa commit e6cd6c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/uv-python/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,9 @@ pub(crate) fn find_python_installation(
&& !has_default_executable_name
{
debug!("Skipping pre-release {}", installation.key());
first_prerelease = Some(installation.clone());
if first_prerelease.is_none() {
first_prerelease = Some(installation.clone());
}
continue;
}

Expand Down

0 comments on commit e6cd6c9

Please sign in to comment.