about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlec Goncharow <algo@cloudflare.com>2022-03-29 12:43:21 -0400
committerAlec Goncharow <algo@cloudflare.com>2022-03-29 12:43:21 -0400
commitb3ff4835befc318f59ece942923ce55e4b2f1aa5 (patch)
tree8a3b84a1297dd67d7cddd103bd4ca0fb547d9378
parent11909e3588319235e28e99294e17cca11db1d7e2 (diff)
downloadrust-b3ff4835befc318f59ece942923ce55e4b2f1aa5.tar.gz
rust-b3ff4835befc318f59ece942923ce55e4b2f1aa5.zip
bootstrap: loosen and expand python check bounds
-rw-r--r--src/bootstrap/sanity.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/sanity.rs b/src/bootstrap/sanity.rs
index 8c2899c1ac0..c96e6f9a367 100644
--- a/src/bootstrap/sanity.rs
+++ b/src/bootstrap/sanity.rs
@@ -103,7 +103,9 @@ pub fn check(build: &mut Build) {
         .take()
         .map(|p| cmd_finder.must_have(p))
         .or_else(|| env::var_os("BOOTSTRAP_PYTHON").map(PathBuf::from)) // set by bootstrap.py
-        .or_else(|| Some(cmd_finder.must_have("python")));
+        .or_else(|| cmd_finder.maybe_have("python"))
+        .or_else(|| cmd_finder.maybe_have("python3"))
+        .or_else(|| cmd_finder.maybe_have("python2"));
 
     build.config.nodejs = build
         .config