--- orig/boost_1_62_0/tools/build/src/tools/python.jam 2016-09-21 16:33:28.000000000 +0200 +++ boost_1_62_0/tools/build/src/tools/python.jam 2016-10-24 22:10:03.000000000 +0200 @@ -393,7 +393,7 @@ # version, e.g. 2.10 -- let us hope that never happens. # .version-countdown = ; -for local v in [ numbers.range 15 34 ] +for local v in [ numbers.range 15 35 ] { .version-countdown = [ SUBST $(v) (.)(.*) $1.$2 ] $(.version-countdown) ; } @@ -429,7 +429,7 @@ = [ GLOB /System/Library/Frameworks /Library/Frameworks : Python.framework ] ; - return $(prefix)/Versions/$(version)/bin/python ; + return [ GLOB $(prefix)/Versions/$(version)/bin : python? ] ; } @@ -539,6 +539,9 @@ } else { +local full-cmd = + $(sys.executable)" -c 'import distutils.sysconfig as c; import sys; sys.stdout.write(c.get_python_inc())'" ; + includes ?= [ shell-cmd $(full-cmd) ] ; includes ?= $(prefix)/include/python$(version) ; local lib = $(exec-prefix)/lib ;