From 58f170c97ab0715d7ca4833f7ec17d80f435d627 Mon Sep 17 00:00:00 2001 From: Samson <16504129+sagudev@users.noreply.github.com> Date: Tue, 26 Mar 2024 11:14:06 +0100 Subject: [PATCH] Update python detection in codegen (#31873) * Update python detection in codegen * Update build.rs --- components/script/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/script/build.rs b/components/script/build.rs index d002cdb6982..2bc449dcdef 100644 --- a/components/script/build.rs +++ b/components/script/build.rs @@ -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)