Skip to content

Commit

Permalink
Update python detection in codegen (#31873)
Browse files Browse the repository at this point in the history
* Update python detection in codegen

* Update build.rs
  • Loading branch information
sagudev committed Mar 26, 2024
1 parent f8a2eae commit 58f170c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/script/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ impl<'a> phf_shared::PhfHash for Bytes<'a> {
fn find_python() -> String {
env::var("PYTHON3").ok().unwrap_or_else(|| {
let candidates = if cfg!(windows) {
["python3.8.exe", "python38.exe", "python.exe"]
["python.exe", "python"]
} else {
["python3.8", "python3", "python"]
["python3", "python"]
};
for &name in &candidates {
if Command::new(name)
Expand Down

0 comments on commit 58f170c

Please sign in to comment.