From a1979fe91c9fa01a622b9dc3e7b40edcfae5669c Mon Sep 17 00:00:00 2001 From: Stefan Seefeld Date: Wed, 26 Oct 2016 20:32:58 -0400 Subject: [PATCH] Improve logging. --- src/tools/python.jam | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tools/python.jam b/src/tools/python.jam index 8e1adf976..ae1675596 100644 --- a/src/tools/python.jam +++ b/src/tools/python.jam @@ -832,17 +832,20 @@ local rule configure ( version ? : cmd-or-prefix ? : includes * : libraries ? : # # Discover the presence of NumPy # + debug-message "Checking for NumPy..." ; local full-cmd = "import sys; sys.stderr = sys.stdout; import numpy; print(numpy.get_include())" ; local full-cmd = $(interpreter-cmd)" -c \"$(full-cmd)\"" ; + debug-message "running command '$(full-cmd)'" ; local result = [ SHELL $(full-cmd) : strip-eol : exit-status ] ; if $(result[2]) = 0 { .numpy = true ; .numpy-include = $(result[1]) ; + debug-message "NumPy enabled" ; } else { - debug-message "NumPy not configured. Reason:" ; + debug-message "NumPy disabled. Reason:" ; debug-message " $(full-cmd) aborted with " ; debug-message " $(result[1])" ; }