From 21bb994197b536acabd1ddfd3ca82f27d1150645 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 15 Mar 2021 09:20:44 -0400 Subject: [PATCH] Try to search for Python3 first and then Python --- shaderc-sys/build/build.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shaderc-sys/build/build.rs b/shaderc-sys/build/build.rs index 5c4b1f6..3212894 100644 --- a/shaderc-sys/build/build.rs +++ b/shaderc-sys/build/build.rs @@ -309,10 +309,10 @@ fn main() { finder.must_have("cmake"); finder.must_have("git"); finder - .maybe_have("python") - .or(finder.maybe_have("python3")) + .maybe_have("python3") + .or(finder.maybe_have("python")) .unwrap_or_else(|| { - panic!("Build requires one of `python` or `python3`"); + panic!("Build requires one of `python3` or `python`"); }); let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap();