]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
python_pep517: set CONFIGURE_FILES
authorRoss Burton <ross.burton@arm.com>
Tue, 29 Jul 2025 08:59:29 +0000 (09:59 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Jul 2025 09:47:56 +0000 (10:47 +0100)
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>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/python_mesonpy.bbclass
meta/classes-recipe/python_pep517.bbclass

index 81c087c7c753b6ed91e58bd9a3cb0503ceab0573..37b231cef5382e9103e4820203dd0c85b7bbfedc 100644 (file)
@@ -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):
index e8cd1923ef24d101f332fec43b3258506f4a0796..2c144d39b383edb0cffc102046249baa2acec39d 100644 (file)
@@ -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"