From bb07e82f789dbb08526ca22456faace56748c338 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 21 Feb 2006 07:27:39 +0000 Subject: [PATCH] Try to property set interpreter for NT. [SVN r33051] --- src/tools/python.jam | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/tools/python.jam b/src/tools/python.jam index 6b9d309c4..30e87ef5a 100644 --- a/src/tools/python.jam +++ b/src/tools/python.jam @@ -205,6 +205,22 @@ rule init-nt ( version : root ? : includes ? : libraries ? : cygwin-condition ? PYTHON_DEBUG_IMPORT_LIB ?= [ GLOB $(PYTHON_LIB_PATH) : libpython$(PYTHON_VERSION_NODOT).* ] ; + local interpreter = [ common.get-invocation-command + python : python$(version) : : $(root)/bin + $(root) + $(root)/PCBuild + : path-last ] ; + + if --debug-configuration in [ modules.peek : ARGV ] + { + ECHO "notice: Python include path is" $(includes) ; + ECHO "notice: Python library path is" $(libraries) ; + ECHO "notice: Python interpreter is" $(interpreter) ; + } + + flags python.capture-output PYTHON : $(interpreter) ; + + # This is mingw-specific V1 code. I don't yet understand # why mingw must be specially-cased. #local lib = $(PYTHON_IMPORT_LIB) ;