Ticket #12548: python.jam.diff

File python.jam.diff, 1.0 KB (added by Bob Pepin <bobpepin@…>, 6 years ago)

diff

  • boost_1_62_0/tools/build/src/tools/python.jam

    old new  
    393393# version, e.g. 2.10 -- let us hope that never happens.
    394394#
    395395.version-countdown = ;
    396 for local v in [ numbers.range 15 34 ]
     396for local v in [ numbers.range 15 35 ]
    397397{
    398398    .version-countdown = [ SUBST $(v) (.)(.*) $1.$2 ] $(.version-countdown) ;
    399399}
     
    429429      = [ GLOB /System/Library/Frameworks /Library/Frameworks
    430430          : Python.framework ] ;
    431431
    432     return $(prefix)/Versions/$(version)/bin/python ;
     432    return [ GLOB $(prefix)/Versions/$(version)/bin : python? ] ;
    433433}
    434434
    435435
     
    539539    }
    540540    else
    541541    {
     542local full-cmd =
     543            $(sys.executable)" -c 'import distutils.sysconfig as c; import sys; sys.stdout.write(c.get_python_inc())'" ;
     544        includes ?= [ shell-cmd $(full-cmd) ] ;
    542545        includes ?= $(prefix)/include/python$(version) ;
    543546
    544547        local lib = $(exec-prefix)/lib ;