From b3ff4835befc318f59ece942923ce55e4b2f1aa5 Mon Sep 17 00:00:00 2001 From: Alec Goncharow Date: Tue, 29 Mar 2022 12:43:21 -0400 Subject: bootstrap: loosen and expand python check bounds --- src/bootstrap/sanity.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/bootstrap') 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 -- cgit 1.4.1-3-g733a5