mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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. (From OE-Core rev: a48178f6d00e7f97a09f42d5a164204e9dcffa9f) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
ce39d05d51
commit
e3887b0690
|
@ -88,6 +88,10 @@ if [ ! -d "$BITBAKEDIR" ]; then
|
|||
return 1
|
||||
fi
|
||||
|
||||
# Add BitBake's library to PYTHONPATH
|
||||
PYTHONPATH=$BITBAKEDIR/lib:$PYTHONPATH
|
||||
export PYTHONPATH
|
||||
|
||||
# Make sure our paths are at the beginning of $PATH
|
||||
for newpath in "$BITBAKEDIR/bin" "$OEROOT/scripts"; do
|
||||
# Remove any existences of $newpath from $PATH
|
||||
|
|
Loading…
Reference in New Issue
Block a user