diff --git a/bindings/python/Jamfile b/bindings/python/Jamfile index 698efaf8d..47d389c97 100644 --- a/bindings/python/Jamfile +++ b/bindings/python/Jamfile @@ -31,6 +31,14 @@ if $(LIBTORRENT_PYTHON_INTERPRETER) # copied from boost 1.63's boost python jamfile rule find-py3-version { + local BOOST_VERSION_TAG = [ modules.peek boostcpp : BOOST_VERSION_TAG ] ; + if $(BOOST_VERSION_TAG) >= 1_67 + { + # starting with boost 1.67.0 boost python no longer define a separate + # target for python3 (boost_python3) so then we just use the regular + # boost_python target + return ; + } local versions = [ feature.values python ] ; local py3ver ; for local v in $(versions)