]> code.ossystems Code Review - openembedded-core.git/commit
scripts/install-buildtools: refactor for Python 3.4
authorTim Orling <timothy.t.orling@linux.intel.com>
Fri, 3 Apr 2020 23:11:38 +0000 (16:11 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 5 Apr 2020 10:46:34 +0000 (11:46 +0100)
commit869020dac889e9ed79a294f308a87cfd946a68bd
tree53853c4d3cbd3fd84959dad6e5e91821c010826b
parente238fa177bd72bc5d165fbe4f640132267a1d3fd
scripts/install-buildtools: refactor for Python 3.4

Our least common denominator supported distro is debian-8
which has python 3.4. The whole point of the install-buildtools
script is to make it easier on the user to install buildtools
tarball. So it needs to run on Python 3.4.

The way we checked if the install was successful in the prior
version of the script was not workable in python 3.4. Since
the environment-setup-... script is currently just exporting
environment variables, use os.environ to do the equivalent from
values gleaned via regex from the environment-setup-... file.

Corrected a couple minor whitespace errors

NOTE: License changed to GPL-2.0-only due to inclusion of code
copied directly from bitbake/lib/bb/utils.py. This avoids the
need to depend on bitbake, which is now Python 3.5+ only.

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/install-buildtools