]> code.ossystems Code Review - openembedded-core.git/commit
oe-buildenv-internal: add BitBake's library to PYTHONPATH
authorRoss Burton <ross@burtonini.com>
Tue, 4 May 2021 12:57:40 +0000 (13:57 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 May 2021 07:41:21 +0000 (08:41 +0100)
commita48178f6d00e7f97a09f42d5a164204e9dcffa9f
tree66685277881e1ef493c8dcffb9b138ce20d33fac
parentb0aedd74f13b174861ff742eb503d8d343f9e714
oe-buildenv-internal: add BitBake's library to PYTHONPATH

There are many Python scripts in oe-core that want to use Tinfoil, and
right now they have to know where they are to work out where BitBake is
likely to be.

This is suboptimal as BitBake could be somewhere else, so this
approach doesn't scale to other layers at all.

Solve this by adding BITBAKEDIR/lib to PYTHONPATH in oe-buildenv-internal,
so that Python has BitBake on its search path once the build system is
configured.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-buildenv-internal