Boost logo

Boost Users :

Subject: Re: [Boost-users] [python] boost-python headers - are they python version specific?
From: Mika Fischer (mika.fischer_at_[hidden])
Date: 2013-02-12 04:08:58


On Tue, Feb 12, 2013 at 2:23 AM, Steve Lorimer <steve.lorimer_at_[hidden]> wrote:
> I want to build 2 variants of boost python - one for each python version.
>
> My question is - will the boost headers be different; or can I just use the
> same header location for the boost headers, and link against a different
> boost-python library depending on which python version I want?

Even better, you can build both variants in the same boost build. The
headers are the same. This is what I'm using on Arch Linux:
    sed -i '/python/d' project-config.jam
    echo "using python : 3.3 : /usr/bin/python :
/usr/include/python3.3m : /usr/lib ;" >> project-config.jam
    echo "using python : 2.7 : /usr/bin/python2 :
/usr/include/python2.7 : /usr/lib ;" >> project-config.jam

Best,
 Mika


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net