Boost and Python 3.x

BenjaminB picture BenjaminB · Apr 4, 2011 · Viewed 37.8k times · Source

How does boost.python deal with Python 3? Is it Python 2 only?

Answer

hkaiser picture hkaiser · Apr 4, 2011

Newer versions of Boost should work fine with Python V3.x. This support has been added quite some time ago, I believe after a successful Google Summer of Code project back in 2009.

The way to use Python V3 with Boost is to properly configure the build system by adding for instance:

using python : 3.1 : /your_python31_root ;

to your user-config.jam file.