Skip to content

Commit b3ff483

Browse files
bootstrap: loosen and expand python check bounds
1 parent 11909e3 commit b3ff483

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/sanity.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ pub fn check(build: &mut Build) {
103103
.take()
104104
.map(|p| cmd_finder.must_have(p))
105105
.or_else(|| env::var_os("BOOTSTRAP_PYTHON").map(PathBuf::from)) // set by bootstrap.py
106-
.or_else(|| Some(cmd_finder.must_have("python")));
106+
.or_else(|| cmd_finder.maybe_have("python"))
107+
.or_else(|| cmd_finder.maybe_have("python3"))
108+
.or_else(|| cmd_finder.maybe_have("python2"));
107109

108110
build.config.nodejs = build
109111
.config

0 commit comments

Comments
 (0)