[C++-sig] Accessing python configuration data when building extensions using bjam and boost.python
David Abrahams
dave at boostpro.com
Fri Aug 22 02:56:47 CEST 2008
on Mon Aug 18 2008, "Greg Landrum" <greg.landrum-AT-gmail.com> wrote:
> So I need to add something like this to my
> Jamroot :
> <toolset>gcc:<include>/usr/lib/python2.5/site-packages/numpy/core/include
> This is, obviously, dependent on operating system, python version and
> python installation-location. So the user will have to edit the
> Jamroot based on their details. One of the things I really like about
> boost.build is that this kind of stuff is normally not required.
I think that sort of thing is what site-config.jam is designed for.
> I could solve this problem, I think, there were a variable (?) in
> python.jam defining the location of python's "lib" directory that I
> could access from my Jamroot. Then I could have something like:
> <include>$(python-lib-dir)/numpy/core/include
> that would work on every machine.
>
> I've spent some time looking through the boost.build documentation and
> python.jam, but I was unable to figure out how to expose a new
> variable that would be accessible from other Jamfiles.
>
> Does anyone have a recipe for doing this?
If you find you need to do something like this, I strongly suggest
asking about it on the boost-build list.
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
More information about the Cplusplus-sig
mailing list