From 97da053a3d2f0c8fee51e1737290384bc5f322b5 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 29 Jul 2025 09:59:29 +0100 Subject: [PATCH] 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 --- meta/classes-recipe/python_mesonpy.bbclass | 2 -- meta/classes-recipe/python_pep517.bbclass | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) 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" -- 2.47.2