Boost logo

Boost-Build :

From: Pedro Ferreira (pedro.ferreira_at_[hidden])
Date: 2005-02-11 11:15:44


Vladimir Prus wrote:

>I'm still nibbling at Python support in V2. This time the question is how to
>find Boost.Python library.
>
>Say, user writes:
>
> using python : 2.3 ;
> python-extension getting_started : getting_started.cpp ;
>
>The 'python-extension' rule must arrange for Boost.Python to be linked with
>the created python extension. I see two approaches to find Boost.Python
>
>- Just grep relatively to BOOST_BUILD_PATH, like boostbook does
>- Allows the user specify explicit location.
>
>I think it's best to allow both approaches:
>
> # Tries to find Boost.Python form BOOST_BUILD_PATH
> using python : 2.3 ;
>
> # Explicit 'using bpl' specifies the location of Boost.Python
> using python : 2.3 ;
> using bpl : /home/ghost/Work/boost/libs/python ;
>
>Comments?
>
>
>

If it's not too difficult, allowing the explicit specification is always
better.
E.g., here we use a Boost.Build distribution that is separate from boost
itself, so this would require one to specify the location of the BPL
independently of BOOST_BUILD_PATH.

Pedro

 


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