$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: grafikrobot_at_[hidden]
Date: 2008-02-20 18:01:43
Author: grafik
Date: 2008-02-20 18:01:43 EST (Wed, 20 Feb 2008)
New Revision: 43336
URL: http://svn.boost.org/trac/boost/changeset/43336
Log:
Use the configured python interpreter instead of assuming it's in the path.
Text files modified: 
   trunk/tools/build/v2/tools/docutils.jam |     7 ++++---                                 
   1 files changed, 4 insertions(+), 3 deletions(-)
Modified: trunk/tools/build/v2/tools/docutils.jam
==============================================================================
--- trunk/tools/build/v2/tools/docutils.jam	(original)
+++ trunk/tools/build/v2/tools/docutils.jam	2008-02-20 18:01:43 EST (Wed, 20 Feb 2008)
@@ -12,6 +12,7 @@
 import toolset ;
 import path ;
 import feature : feature ;
+import property ;
 
 .initialized = ;
 
@@ -58,10 +59,10 @@
 
 rule html ( target : source : properties *  )
 {
-    local command-prefix = "python "$(.docutils-dir)/tools/ ;
     if ! [ on $(target) return $(RST2XXX) ]
     {
-        RST2XXX on $(target) = $(command-prefix:E="")rst2html.py ;
+        local python-cmd = [ property.select <python.interpreter> : $(properties) ] ;
+        RST2XXX on $(target) = $(python-cmd:G=:E="python") $(.docutils-dir)/tools/rst2html.py ;
     }
 }
 
@@ -76,6 +77,6 @@
 actions html
 {
     $(.setup)
-    $(RST2XXX) $(COMMON-FLAGS) $(HTML-FLAGS) $(>) $(<)
+    "$(RST2XXX)" $(COMMON-FLAGS) $(HTML-FLAGS) $(>) $(<)
 }