From: David Abrahams (dave_at_[hidden])
Date: 2006-06-01 10:44:23
"Noel Belcourt" <kbelco_at_[hidden]> writes:
> I want to configure our site.jam so that we can pass multiple python
> install roots to the init rule.
> using python : 2.3 : /usr/local /usr/netpub/python-2.3.5
> /usr/engsci/python /usr ;
> In our case, the location of the correct python depends on which
> machine we log in to on our Lan. I'd like to search the install roots
> in the order passed to init until a valid version is found.
> Fortunately for us, our Pythons are all the same version, not sure what
> we'd do if the versions changed based on the system we logged into.
> The python init rule
> rule init ( version ? : root ? : includes ? : libraries ? :
> cygwin-condition * )
> currently permits only a single root. Is this a reasonable approach or
> are there better solutions?
A quickie workaround is to simply make up versions for each platform.
using python : 2.3m : /usr/local ;
using python : 2.3j : /usr/netpub/python-2.3.5 ;
If you want this all to be automatic you'd have to write the searching
wrapper on top of the init rule.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk