From ce0bd6862e122da7eddea761459324c2fa673d2a Mon Sep 17 00:00:00 2001 From: messense Date: Fri, 1 Sep 2023 20:30:45 +0800 Subject: [PATCH] Use `python.exe` by default in `build` command on Windows --- src/build_options.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build_options.rs b/src/build_options.rs index a7c30eae2..3571bd543 100644 --- a/src/build_options.rs +++ b/src/build_options.rs @@ -551,10 +551,10 @@ impl BuildOptions { if cfg!(test) { match env::var_os("MATURIN_TEST_PYTHON") { Some(python) => vec![python.into()], - None => vec![PathBuf::from("python3")], + None => vec![target.get_python()], } } else { - vec![PathBuf::from("python3")] + vec![target.get_python()] } } else { // XXX: False positive clippy warning