From 7fee41dcef576312e1f12ef485e9b07b9612569b Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 16 Mar 2022 18:32:43 +0000 Subject: classes/python_pep517: consolidate stub do_configure As PEP517 doesn't have an explicit configure step, we can stub out the do_configure task once instead of the calling classes doing it. (From OE-Core rev: fd17edbd00f1583eb9e1912ab269dd4dc2631a6f) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/classes/python_pep517.bbclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'meta/classes/python_pep517.bbclass') diff --git a/meta/classes/python_pep517.bbclass b/meta/classes/python_pep517.bbclass index 73bcf9ba07..34ffdc9c0d 100644 --- a/meta/classes/python_pep517.bbclass +++ b/meta/classes/python_pep517.bbclass @@ -22,6 +22,12 @@ PEP517_INSTALL_PYTHON:class-native = "nativepython3" # pypa/installer option to control the bytecode compilation INSTALL_WHEEL_COMPILE_BYTECODE ?= "--compile-bytecode=0" +# PEP517 doesn't have a specific configure step, so set an empty do_configure to avoid +# running base_do_configure. +python_pep517_do_configure () { + : +} + # When we have Python 3.11 we can parse pyproject.toml to determine the build # API entry point directly python_pep517_do_compile () { @@ -47,4 +53,4 @@ python_pep517_do_bootstrap_install () { unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PEP517_WHEEL_PATH}/*.whl } -EXPORT_FUNCTIONS do_compile do_install +EXPORT_FUNCTIONS do_configure do_compile do_install -- cgit v1.2.3-54-g00ecf