diff mbox series

[v2,1/7] python_pep517: set CONFIGURE_FILES

Message ID 20250729085935.1290438-1-ross.burton@arm.com
State New
Headers show
Series [v2,1/7] python_pep517: set CONFIGURE_FILES | expand

Commit Message

Ross Burton July 29, 2025, 8:59 a.m. UTC
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 <ross.burton@arm.com>
---
 meta/classes-recipe/python_mesonpy.bbclass | 2 --
 meta/classes-recipe/python_pep517.bbclass  | 3 +++
 2 files changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/classes-recipe/python_mesonpy.bbclass b/meta/classes-recipe/python_mesonpy.bbclass
index 81c087c7c75..37b231cef53 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 e8cd1923ef2..2c144d39b38 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"