$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-build] Building for two python versions
From: Steve M. Robbins (steve_at_[hidden])
Date: 2013-09-12 11:56:18
On Thu, Sep 12, 2013 at 01:26:27PM +0200, Philipp Thomas wrote:
> How would I have go about if I wanted to build boost.python for both python2
> and python3 and not having to completely build boost two times?
The approach I take with debian packages is:
1. bjam --without-python ...
2. for pyver in $(pyversions); do bjam --with-python python=$pyver ...
There are a bunch of other details, like doing the same trick during
install, and using --python-buildid so that the various flavours of
libboost_python are distinguishable. Note that the latter is broken
in the trunk, so I have to patch around it.
The full details are available in debian/rules, available here:
http://patch-tracker.debian.org/package/boost1.54 (look for the debain.tar.gz link)
Regards,
-Steve