Skip to content

Commit

Permalink
fix: show warning if no precompiled pythons found (#3359)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx authored Dec 4, 2024
1 parent 711f028 commit d9158ac
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/plugins/core/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,16 @@ impl PythonPlugin {
tv.version
);
}
debug!("no precompiled python found for {}", tv.version);
let mut available = precompiled_versions.iter().map(|(v, _, _)| v);
trace!("available precompiled versions: {}", available.join(", "));
let available = precompiled_versions.iter().map(|(v, _, _)| v).collect_vec();
if available.is_empty() {
debug!("no precompiled python found for {}", tv.version);
} else {
warn!("no precompiled python found for {}, force mise to use a precompiled version with `mise settings set python.compile=false`", tv.version);
}
trace!(
"available precompiled versions: {}",
available.into_iter().join(", ")
);
return self.install_compiled(ctx, tv);
}
};
Expand Down

0 comments on commit d9158ac

Please sign in to comment.