diff options
Diffstat (limited to 'components/script/build.rs')
-rw-r--r-- | components/script/build.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/build.rs b/components/script/build.rs index 6a9b4866759..ea39b698257 100644 --- a/components/script/build.rs +++ b/components/script/build.rs @@ -65,11 +65,11 @@ impl<'a> phf_shared::PhfHash for Bytes<'a> { } fn find_python() -> String { - env::var("PYTHON2").ok().unwrap_or_else(|| { + env::var("PYTHON3").ok().unwrap_or_else(|| { let candidates = if cfg!(windows) { - ["python2.7.exe", "python27.exe", "python.exe"] + ["python3.8.exe", "python38.exe", "python.exe"] } else { - ["python2.7", "python2", "python"] + ["python3.8", "python3", "python"] }; for &name in &candidates { if Command::new(name) @@ -82,7 +82,7 @@ fn find_python() -> String { } } panic!( - "Can't find python (tried {})! Try fixing PATH or setting the PYTHON2 env var", + "Can't find python (tried {})! Try fixing PATH or setting the PYTHON3 env var", candidates.join(", ") ) }) |