1 #~ Copyright 2005 Rene Rivera.
2 #~ Distributed under the Boost Software License, Version 1.0.
3 #~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
5 # Automatic configuration for Python tools and librries. To use, just import this module.
8 import toolset : using ;
12 for local R in 2.4 2.3 2.2
14 local python-path = [ W32_GETREG
15 "HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\$(R)\\InstallPath" ] ;
16 local python-version = $(R) ;
20 if --debug-configuration in [ modules.peek : ARGV ]
22 ECHO "notice:" using python ":" $(python-version) ":" $(python-path) ;
24 using python : $(python-version) : $(python-path) ;