• Mats Wichmann's avatar
    Prepare for scons3: change prints and more · 630bb71b
    Mats Wichmann authored
    A previous change updated all the scons scripts:
    This change picks up the semi-external scripts that are called
    by the build, and thus are run in the scons context and need updating.
    Print statements are surrounded with parens so they look like function
    calls.  This is an scons3 syntax requirement even if still using Python 2.
    The old exception format "except FooErr, err" is no longer supported
    in Python 3; since the Python 3 format "except FooErr as err" has been
    available since Python 2.6, there is no problem switching these and it
    makes sense to remove one way things could fail if Py3 is used.
    A few comparisons which used <> are changed to the preferred != form.
    Reformatted Builder call without changing it, and added a comment in the
    forked version to help explain why there are two copies of UnpackAll.py.
    With these changes, a full build completes successfully using scons3.0.
    Change-Id: Ia8df28d12c6504d6466dcf793779535d1ad3aa8b
    Signed-off-by: default avatarMats Wichmann <mats@linux.com>
    (cherry picked from commit b34da4aa)
BoostBuild.py 5.7 KB