All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] python_pep517: move PEP517_SOURCE_PATH to python_pep517
@ 2022-03-11 17:12 Ross Burton
  2022-03-12 16:40 ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Ross Burton @ 2022-03-11 17:12 UTC (permalink / raw)
  To: openembedded-core

Now we have the start of a PEP-517 base class, the PEP517_SOURCE_PATH
variable can be defined in there instead of the classes that use it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/classes/flit_core.bbclass             | 3 ---
 meta/classes/python_pep517.bbclass         | 3 +++
 meta/classes/setuptools_build_meta.bbclass | 3 ---
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass
index 1ef8ce9429..5a602f54ab 100644
--- a/meta/classes/flit_core.bbclass
+++ b/meta/classes/flit_core.bbclass
@@ -6,9 +6,6 @@ flit_core_do_configure () {
     :
 }
 
-# Where to execute the build process from
-PEP517_SOURCE_PATH ?= "${S}"
-
 # TODO: ideally this uses pypa/build
 flit_core_do_compile () {
     cd ${PEP517_SOURCE_PATH}
diff --git a/meta/classes/python_pep517.bbclass b/meta/classes/python_pep517.bbclass
index 76660e70f8..756333bcf2 100644
--- a/meta/classes/python_pep517.bbclass
+++ b/meta/classes/python_pep517.bbclass
@@ -3,6 +3,9 @@
 
 DEPENDS:append = " python3-pip-native"
 
+# Where to execute the build process from
+PEP517_SOURCE_PATH ?= "${S}"
+
 # The directory where wheels should be written too. Build classes
 # will ideally [cleandirs] this but we don't do that here in case
 # a recipe wants to install prebuilt wheels.
diff --git a/meta/classes/setuptools_build_meta.bbclass b/meta/classes/setuptools_build_meta.bbclass
index 424be85608..8791a2965f 100644
--- a/meta/classes/setuptools_build_meta.bbclass
+++ b/meta/classes/setuptools_build_meta.bbclass
@@ -2,9 +2,6 @@ inherit setuptools3-base python_pep517
 
 DEPENDS += "python3-setuptools-native python3-wheel-native"
 
-# Where to execute the build process from
-PEP517_SOURCE_PATH ?= "${S}"
-
 setuptools_build_meta_do_configure () {
     :
 }
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH] python_pep517: move PEP517_SOURCE_PATH to python_pep517
  2022-03-11 17:12 [PATCH] python_pep517: move PEP517_SOURCE_PATH to python_pep517 Ross Burton
@ 2022-03-12 16:40 ` Khem Raj
  2022-03-12 20:06   ` Ross Burton
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2022-03-12 16:40 UTC (permalink / raw)
  To: Ross Burton; +Cc: Patches and discussions about the oe-core layer

seeing this

https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/1517

On Fri, Mar 11, 2022 at 9:12 AM Ross Burton <ross@burtonini.com> wrote:
>
> Now we have the start of a PEP-517 base class, the PEP517_SOURCE_PATH
> variable can be defined in there instead of the classes that use it.
>
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
>  meta/classes/flit_core.bbclass             | 3 ---
>  meta/classes/python_pep517.bbclass         | 3 +++
>  meta/classes/setuptools_build_meta.bbclass | 3 ---
>  3 files changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass
> index 1ef8ce9429..5a602f54ab 100644
> --- a/meta/classes/flit_core.bbclass
> +++ b/meta/classes/flit_core.bbclass
> @@ -6,9 +6,6 @@ flit_core_do_configure () {
>      :
>  }
>
> -# Where to execute the build process from
> -PEP517_SOURCE_PATH ?= "${S}"
> -
>  # TODO: ideally this uses pypa/build
>  flit_core_do_compile () {
>      cd ${PEP517_SOURCE_PATH}
> diff --git a/meta/classes/python_pep517.bbclass b/meta/classes/python_pep517.bbclass
> index 76660e70f8..756333bcf2 100644
> --- a/meta/classes/python_pep517.bbclass
> +++ b/meta/classes/python_pep517.bbclass
> @@ -3,6 +3,9 @@
>
>  DEPENDS:append = " python3-pip-native"
>
> +# Where to execute the build process from
> +PEP517_SOURCE_PATH ?= "${S}"
> +
>  # The directory where wheels should be written too. Build classes
>  # will ideally [cleandirs] this but we don't do that here in case
>  # a recipe wants to install prebuilt wheels.
> diff --git a/meta/classes/setuptools_build_meta.bbclass b/meta/classes/setuptools_build_meta.bbclass
> index 424be85608..8791a2965f 100644
> --- a/meta/classes/setuptools_build_meta.bbclass
> +++ b/meta/classes/setuptools_build_meta.bbclass
> @@ -2,9 +2,6 @@ inherit setuptools3-base python_pep517
>
>  DEPENDS += "python3-setuptools-native python3-wheel-native"
>
> -# Where to execute the build process from
> -PEP517_SOURCE_PATH ?= "${S}"
> -
>  setuptools_build_meta_do_configure () {
>      :
>  }
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#163067): https://lists.openembedded.org/g/openembedded-core/message/163067
> Mute This Topic: https://lists.openembedded.org/mt/89715331/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH] python_pep517: move PEP517_SOURCE_PATH to python_pep517
  2022-03-12 16:40 ` [OE-core] " Khem Raj
@ 2022-03-12 20:06   ` Ross Burton
  0 siblings, 0 replies; 3+ messages in thread
From: Ross Burton @ 2022-03-12 20:06 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer

Sorry, I should have sent the meta-oe fix, but I know it's not easy to
say "only merge this patch when these in other layers have merged", so
I tend to wait and then post.

The patch you sent was only half of the fix, I just posted a patch to oe-devel.

Ross

On Sat, 12 Mar 2022 at 16:41, Khem Raj <raj.khem@gmail.com> wrote:
>
> seeing this
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/1517
>
> On Fri, Mar 11, 2022 at 9:12 AM Ross Burton <ross@burtonini.com> wrote:
> >
> > Now we have the start of a PEP-517 base class, the PEP517_SOURCE_PATH
> > variable can be defined in there instead of the classes that use it.
> >
> > Signed-off-by: Ross Burton <ross.burton@arm.com>
> > ---
> >  meta/classes/flit_core.bbclass             | 3 ---
> >  meta/classes/python_pep517.bbclass         | 3 +++
> >  meta/classes/setuptools_build_meta.bbclass | 3 ---
> >  3 files changed, 3 insertions(+), 6 deletions(-)
> >
> > diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass
> > index 1ef8ce9429..5a602f54ab 100644
> > --- a/meta/classes/flit_core.bbclass
> > +++ b/meta/classes/flit_core.bbclass
> > @@ -6,9 +6,6 @@ flit_core_do_configure () {
> >      :
> >  }
> >
> > -# Where to execute the build process from
> > -PEP517_SOURCE_PATH ?= "${S}"
> > -
> >  # TODO: ideally this uses pypa/build
> >  flit_core_do_compile () {
> >      cd ${PEP517_SOURCE_PATH}
> > diff --git a/meta/classes/python_pep517.bbclass b/meta/classes/python_pep517.bbclass
> > index 76660e70f8..756333bcf2 100644
> > --- a/meta/classes/python_pep517.bbclass
> > +++ b/meta/classes/python_pep517.bbclass
> > @@ -3,6 +3,9 @@
> >
> >  DEPENDS:append = " python3-pip-native"
> >
> > +# Where to execute the build process from
> > +PEP517_SOURCE_PATH ?= "${S}"
> > +
> >  # The directory where wheels should be written too. Build classes
> >  # will ideally [cleandirs] this but we don't do that here in case
> >  # a recipe wants to install prebuilt wheels.
> > diff --git a/meta/classes/setuptools_build_meta.bbclass b/meta/classes/setuptools_build_meta.bbclass
> > index 424be85608..8791a2965f 100644
> > --- a/meta/classes/setuptools_build_meta.bbclass
> > +++ b/meta/classes/setuptools_build_meta.bbclass
> > @@ -2,9 +2,6 @@ inherit setuptools3-base python_pep517
> >
> >  DEPENDS += "python3-setuptools-native python3-wheel-native"
> >
> > -# Where to execute the build process from
> > -PEP517_SOURCE_PATH ?= "${S}"
> > -
> >  setuptools_build_meta_do_configure () {
> >      :
> >  }
> > --
> > 2.25.1
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#163067): https://lists.openembedded.org/g/openembedded-core/message/163067
> > Mute This Topic: https://lists.openembedded.org/mt/89715331/1997914
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-12 20:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-11 17:12 [PATCH] python_pep517: move PEP517_SOURCE_PATH to python_pep517 Ross Burton
2022-03-12 16:40 ` [OE-core] " Khem Raj
2022-03-12 20:06   ` Ross Burton

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.