From patchwork Thu Jul 24 16:15:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 67412 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3645AC87FCE for ; Thu, 24 Jul 2025 16:15:59 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.675.1753373750597625580 for ; Thu, 24 Jul 2025 09:15:50 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C67621A00 for ; Thu, 24 Jul 2025 09:15:43 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CD86D3F66E for ; Thu, 24 Jul 2025 09:15:49 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 4/7] setuptools3: tidy up do_compile Date: Thu, 24 Jul 2025 17:15:40 +0100 Message-ID: <20250724161543.2253776-4-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250724161543.2253776-1-ross.burton@arm.com> References: <20250724161543.2253776-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 24 Jul 2025 16:15:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/220845 This function was untidy and has pointless logging, rewrite. Signed-off-by: Ross Burton --- meta/classes-recipe/setuptools3.bbclass | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/meta/classes-recipe/setuptools3.bbclass b/meta/classes-recipe/setuptools3.bbclass index 0adce5e2ece..f6194426cd9 100644 --- a/meta/classes-recipe/setuptools3.bbclass +++ b/meta/classes-recipe/setuptools3.bbclass @@ -32,11 +32,13 @@ setuptools3_do_configure() { setuptools3_do_compile() { cd ${SETUPTOOLS_SETUP_PATH} - STAGING_INCDIR=${STAGING_INCDIR} \ - STAGING_LIBDIR=${STAGING_LIBDIR} \ - ${STAGING_BINDIR_NATIVE}/python3-native/python3 setup.py \ - bdist_wheel --verbose --dist-dir ${PEP517_WHEEL_PATH} ${SETUPTOOLS_BUILD_ARGS} || \ - bbfatal_log "'python3 setup.py bdist_wheel ${SETUPTOOLS_BUILD_ARGS}' execution failed." + + export STAGING_INCDIR=${STAGING_INCDIR} + export STAGING_LIBDIR=${STAGING_LIBDIR} + + nativepython3 setup.py --verbose \ + bdist_wheel --dist-dir ${PEP517_WHEEL_PATH} \ + ${SETUPTOOLS_BUILD_ARGS} } setuptools3_do_compile[vardepsexclude] = "MACHINE" do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"