From 4b26edfa09d4f8a94e5b130c8be608da41cbc9b4 Mon Sep 17 00:00:00 2001 From: Guanqun Lu Date: Wed, 27 Dec 2017 18:35:49 +0800 Subject: [PATCH] display the required version and current version in error message --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index a4a29a6c..2ffe199a 100644 --- a/build.rs +++ b/build.rs @@ -357,7 +357,7 @@ fn configure_from_path(expected_version: &PythonVersion) -> Result<(String, Stri } if let Some(minor) = some_minor { if minor < PY3_MIN_MINOR { - return Err(format!("Python 3 min version is 3.{}", minor)) + return Err(format!("Python 3 required version is 3.{}, current version is 3.{}", PY3_MIN_MINOR, minor)) } for i in 5..(minor+1) { println!("cargo:rustc-cfg=Py_3_{}", i);