From: Ross Burton Date: Tue, 29 Jul 2025 08:59:29 +0000 (+0100) Subject: python_pep517: set CONFIGURE_FILES X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=049cd6b62853c020b0c85ccee18638ec58887866;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git python_pep517: set CONFIGURE_FILES Move the CONFIGURE_FILES assignment from python_mesonpy to the common class, as it isn't specific to mesonpy. Also extend, so that it doesn't clobber existing settings. Signed-off-by: Ross Burton Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/python_mesonpy.bbclass b/meta/classes-recipe/python_mesonpy.bbclass index 81c087c7c7..37b231cef5 100644 --- a/meta/classes-recipe/python_mesonpy.bbclass +++ b/meta/classes-recipe/python_mesonpy.bbclass @@ -17,8 +17,6 @@ meson_do_qa_configure () { # ERROR: Got argument buildtype as both -Dbuildtype and --buildtype. Pick one. MESONOPTS:remove = "--buildtype ${MESON_BUILDTYPE}" -CONFIGURE_FILES = "pyproject.toml" - DEPENDS += "python3-wheel-native python3-meson-python-native" def mesonpy_get_args(d): diff --git a/meta/classes-recipe/python_pep517.bbclass b/meta/classes-recipe/python_pep517.bbclass index e8cd1923ef..2c144d39b3 100644 --- a/meta/classes-recipe/python_pep517.bbclass +++ b/meta/classes-recipe/python_pep517.bbclass @@ -61,3 +61,6 @@ python_pep517_do_bootstrap_install () { } EXPORT_FUNCTIONS do_configure do_compile do_install + +# Tell externalsrc this changing means it needs to reconfigure +CONFIGURE_FILES += "pyproject.toml"