All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ross Burton <ross.burton@arm.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 3/8] classes/flit_core: use python_pep517_do_compile
Date: Wed, 16 Mar 2022 18:32:38 +0000	[thread overview]
Message-ID: <20220316183243.876234-3-ross.burton@arm.com> (raw)
In-Reply-To: <20220316183243.876234-1-ross.burton@arm.com>

Instead of implementing our own do_compile, set PEP517_BUILD_API and
use the generic do_compile.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/classes/flit_core.bbclass | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass
index 5a602f54ab..81fdf93e47 100644
--- a/meta/classes/flit_core.bbclass
+++ b/meta/classes/flit_core.bbclass
@@ -2,15 +2,10 @@ inherit python_pep517 python3native python3-dir setuptools3-base
 
 DEPENDS += "python3 python3-flit-core-native"
 
+PEP517_BUILD_API = "flit_core.buildapi"
+
 flit_core_do_configure () {
     :
 }
 
-# TODO: ideally this uses pypa/build
-flit_core_do_compile () {
-    cd ${PEP517_SOURCE_PATH}
-    nativepython3 -mflit_core.wheel --outdir ${PEP517_WHEEL_PATH}
-}
-do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
-
-EXPORT_FUNCTIONS do_configure do_compile
+EXPORT_FUNCTIONS do_configure
-- 
2.25.1



  parent reply	other threads:[~2022-03-16 18:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-16 18:32 [PATCH 1/8] python3-packaging: remove duplicate python3-setuptools-native DEPENDS Ross Burton
2022-03-16 18:32 ` [PATCH 2/8] classes/python_pep517: implement a standard do_compile Ross Burton
2022-03-16 18:32 ` Ross Burton [this message]
2022-03-16 18:32 ` [PATCH 4/8] classes/python_poetry_core: use python_pep517_do_compile Ross Burton
2022-03-16 18:32 ` [PATCH 5/8] classes/setuptools_build_meta: " Ross Burton
2022-03-16 18:32 ` [PATCH 6/8] classes/python_pep517: add more comments Ross Burton
2022-03-16 18:32 ` [PATCH 7/8] classes/flit_core: rename to python_flit_core Ross Burton
2022-03-16 18:32 ` [PATCH 8/8] classes/python_pep517: consolidate stub do_configure Ross Burton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220316183243.876234-3-ross.burton@arm.com \
    --to=ross.burton@arm.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.