]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
scripts/install-buildtools: refactor for Python 3.4 timo/install-buildtools_py34
authorTim Orling <timothy.t.orling@linux.intel.com>
Fri, 3 Apr 2020 22:41:05 +0000 (15:41 -0700)
committerTim Orling <timothy.t.orling@linux.intel.com>
Fri, 3 Apr 2020 23:01:09 +0000 (16:01 -0700)
commitf967ccc1cc2d5646311ebcbb8e54529afa08d717
tree04d1596ab7288a541f4fa6d483438d3ef7dcf182
parent0c91fcba446418ad1f71d3df9aa3b186bbd353c7
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>
scripts/install-buildtools