bindings/python/wscript
changeset 7716 8758b76b756c
parent 7715 5513dcf73d39
child 7746 c1a97d303064
--- a/bindings/python/wscript	Mon Feb 20 12:03:30 2012 +0000
+++ b/bindings/python/wscript	Mon Feb 20 12:17:26 2012 +0000
@@ -92,10 +92,21 @@
 
     try:
         conf.check_tool('python')
+    except Configure.ConfigurationError, ex:
+        conf.report_optional_feature("python", "Python Bindings", False,
+                                     "The python interpreter was not found")
+        return
+    try:
         conf.check_python_version((2,3))
+    except Configure.ConfigurationError, ex:
+        conf.report_optional_feature("python", "Python Bindings", False,
+                                     "The python found version is too low (2.3 required)")
+        return
+    try:
         conf.check_python_headers()
     except Configure.ConfigurationError, ex:
-        conf.report_optional_feature("python", "Python Bindings", False, str(ex))
+        conf.report_optional_feature("python", "Python Bindings", False,
+                                     "Python library or headers missing")
         return
 
     # stupid Mac OSX Python wants to build extensions as "universal