]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
python3targetconfig: export _PYTHON_PROJECT_BASE
authorTrevor Gamblin <tgamblin@baylibre.com>
Tue, 13 Jan 2026 17:57:53 +0000 (12:57 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 19 Jan 2026 17:46:18 +0000 (17:46 +0000)
commitbbef3eb5e42cdcf1128433c18e9465d46910ddbc
tree3e5dc1abfea647d38d060ecaf9e0f415fa234fe8
parent56318067ab3e4d3917335da0e876b9104957647c
python3targetconfig: export _PYTHON_PROJECT_BASE

See: https://github.com/python/cpython/commit/2950bc50af8f

As of 3.14.0, Python's sysconfig module looks for _PYTHON_PROJECT_BASE
to be set when cross-compiling, or otherwise it'll find and use the
native interpreter's paths when calling get_path() and filling out
_CONFIG_VARS. Set _PYTHON_PROJECT_BASE to "${B}" in
python3targetconfig's setup_target_config() to help avoid issues with
incorrect paths in rpm and other recipes that depend on this class.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/python3targetconfig.bbclass