poetry_core: update for renamed class pip_install_wheel to python_pep517

Message ID 20220312200609.382925-1-ross.burton@arm.com
State Under Review
Headers show
Series poetry_core: update for renamed class pip_install_wheel to python_pep517 | expand

Commit Message

Ross Burton March 12, 2022, 8:06 p.m. UTC
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta-python/classes/poetry_core.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Khem Raj March 12, 2022, 11:16 p.m. UTC | #1
thanks, I also came to same patch huffing and puffing, I have taken
this one now.

On Sat, Mar 12, 2022 at 12:06 PM Ross Burton <ross@burtonini.com> wrote:
>
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
>  meta-python/classes/poetry_core.bbclass | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/meta-python/classes/poetry_core.bbclass b/meta-python/classes/poetry_core.bbclass
> index fb37c78c78..b2b80efa4f 100644
> --- a/meta-python/classes/poetry_core.bbclass
> +++ b/meta-python/classes/poetry_core.bbclass
> @@ -1,4 +1,4 @@
> -inherit pip_install_wheel python3native setuptools3-base
> +inherit python_pep517 python3native setuptools3-base
>
>  DEPENDS += "python3-poetry-core-native"
>
> @@ -8,8 +8,8 @@ poetry_core_do_configure () {
>
>  # TODO: ideally this uses pypa/build
>  poetry_core_do_compile () {
> -    nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PIP_INSTALL_DIST_PATH}')"
> +    nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PEP517_WHEEL_PATH}')"
>  }
> -do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}"
> +do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
>
>  EXPORT_FUNCTIONS do_configure do_compile
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#95963): https://lists.openembedded.org/g/openembedded-devel/message/95963
> Mute This Topic: https://lists.openembedded.org/mt/89739125/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
akuster808 March 13, 2022, 6:41 p.m. UTC | #2
On 3/12/22 15:16, Khem Raj wrote:
> thanks, I also came to same patch huffing and puffing, I have taken
> this one now.

thanks you both. I just hit this in my builds

-armin
>
> On Sat, Mar 12, 2022 at 12:06 PM Ross Burton <ross@burtonini.com> wrote:
>> Signed-off-by: Ross Burton <ross.burton@arm.com>
>> ---
>>   meta-python/classes/poetry_core.bbclass | 6 +++---
>>   1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/meta-python/classes/poetry_core.bbclass b/meta-python/classes/poetry_core.bbclass
>> index fb37c78c78..b2b80efa4f 100644
>> --- a/meta-python/classes/poetry_core.bbclass
>> +++ b/meta-python/classes/poetry_core.bbclass
>> @@ -1,4 +1,4 @@
>> -inherit pip_install_wheel python3native setuptools3-base
>> +inherit python_pep517 python3native setuptools3-base
>>
>>   DEPENDS += "python3-poetry-core-native"
>>
>> @@ -8,8 +8,8 @@ poetry_core_do_configure () {
>>
>>   # TODO: ideally this uses pypa/build
>>   poetry_core_do_compile () {
>> -    nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PIP_INSTALL_DIST_PATH}')"
>> +    nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PEP517_WHEEL_PATH}')"
>>   }
>> -do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}"
>> +do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
>>
>>   EXPORT_FUNCTIONS do_configure do_compile
>> --
>> 2.25.1
>>
>>
>>
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#95966): https://lists.openembedded.org/g/openembedded-devel/message/95966
>> Mute This Topic: https://lists.openembedded.org/mt/89739125/3616698
>> Group Owner: openembedded-devel+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [akuster808@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>

Patch

diff --git a/meta-python/classes/poetry_core.bbclass b/meta-python/classes/poetry_core.bbclass
index fb37c78c78..b2b80efa4f 100644
--- a/meta-python/classes/poetry_core.bbclass
+++ b/meta-python/classes/poetry_core.bbclass
@@ -1,4 +1,4 @@ 
-inherit pip_install_wheel python3native setuptools3-base
+inherit python_pep517 python3native setuptools3-base
 
 DEPENDS += "python3-poetry-core-native"
 
@@ -8,8 +8,8 @@  poetry_core_do_configure () {
 
 # TODO: ideally this uses pypa/build
 poetry_core_do_compile () {
-    nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PIP_INSTALL_DIST_PATH}')"
+    nativepython3 -c "from poetry.core.masonry import api; api.build_wheel('${PEP517_WHEEL_PATH}')"
 }
-do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}"
+do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
 
 EXPORT_FUNCTIONS do_configure do_compile