]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
devtool: ide_sdk: Use bitbake's python3 for generated scripts
authorEnguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Mon, 19 Feb 2024 16:55:21 +0000 (17:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 20 Feb 2024 12:58:20 +0000 (12:58 +0000)
commit45704319661570b45ef69fddd6b4b4fa22ca80d1
treeb7a91358d0dff9553788bbbd179c900ad1031466
parentecb698ca5b4f76937dd3bee927465b17866d50be
devtool: ide_sdk: Use bitbake's python3 for generated scripts

The generated scripts use the sys.path configuration found inside
bitbake. It can be a different python version than the one used on the
host through the IDE.

For instance, when running the generated script
deploy_target_cmake-example-core2-64 from an eSDK generated on another
machine, I got the following exception:
    AssertionError: SRE module mismatch

We need to match the sys.executable to the sys.path.

Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/ide_sdk.py