* [PATCH] python3: add the rdepends for python3-misc
@ 2020-06-11 7:39 Yu, Mingli
2020-06-11 8:38 ` [OE-core] " Alejandro Hernandez
[not found] ` <1617707EBB29F899.26822@lists.openembedded.org>
0 siblings, 2 replies; 3+ messages in thread
From: Yu, Mingli @ 2020-06-11 7:39 UTC (permalink / raw)
To: openembedded-core
From: Mingli Yu <mingli.yu@windriver.com>
* Add python3-numbers to rdepends for python3-misc to fix below error:
# python3
[snip]
>>> import statistics
[snip]
ModuleNotFoundError: No module named 'numbers'
* Don't use the hardcoded python3 moudules rdepends
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
meta/recipes-devtools/python/python3_3.8.3.bb | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/python/python3_3.8.3.bb b/meta/recipes-devtools/python/python3_3.8.3.bb
index 09793dade2..997308dc75 100644
--- a/meta/recipes-devtools/python/python3_3.8.3.bb
+++ b/meta/recipes-devtools/python/python3_3.8.3.bb
@@ -331,7 +331,15 @@ INSANE_SKIP_${PN}-dev += "dev-elf"
# catch all the rest (unsorted)
PACKAGES += "${PN}-misc"
-RDEPENDS_${PN}-misc += "python3-core python3-email python3-codecs python3-pydoc python3-pickle python3-audio"
+RDEPENDS_${PN}-misc += "\
+ ${PN}-core \
+ ${PN}-email \
+ ${PN}-codecs \
+ ${PN}-pydoc \
+ ${PN}-pickle \
+ ${PN}-audio \
+ ${PN}-numbers \
+"
RDEPENDS_${PN}-modules_append_class-target = " ${MLPREFIX}python3-misc"
RDEPENDS_${PN}-modules_append_class-nativesdk = " ${MLPREFIX}python3-misc"
FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN} ${libdir}/python${PYTHON_MAJMIN}/lib-dynload"
--
2.24.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [OE-core] [PATCH] python3: add the rdepends for python3-misc
2020-06-11 7:39 [PATCH] python3: add the rdepends for python3-misc Yu, Mingli
@ 2020-06-11 8:38 ` Alejandro Hernandez
[not found] ` <1617707EBB29F899.26822@lists.openembedded.org>
1 sibling, 0 replies; 3+ messages in thread
From: Alejandro Hernandez @ 2020-06-11 8:38 UTC (permalink / raw)
To: Yu, Mingli, openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1577 bytes --]
Hey Mingli,
What are you adding to the image to reproduce this issue?
Cheers,
Alejandro
On 6/11/20 1:39 AM, Yu, Mingli wrote:
> From: Mingli Yu <mingli.yu@windriver.com>
>
> * Add python3-numbers to rdepends for python3-misc to fix below error:
> # python3
> [snip]
> >>> import statistics
> [snip]
> ModuleNotFoundError: No module named 'numbers'
>
> * Don't use the hardcoded python3 moudules rdepends
>
> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
> ---
> meta/recipes-devtools/python/python3_3.8.3.bb | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/python/python3_3.8.3.bb b/meta/recipes-devtools/python/python3_3.8.3.bb
> index 09793dade2..997308dc75 100644
> --- a/meta/recipes-devtools/python/python3_3.8.3.bb
> +++ b/meta/recipes-devtools/python/python3_3.8.3.bb
> @@ -331,7 +331,15 @@ INSANE_SKIP_${PN}-dev += "dev-elf"
>
> # catch all the rest (unsorted)
> PACKAGES += "${PN}-misc"
> -RDEPENDS_${PN}-misc += "python3-core python3-email python3-codecs python3-pydoc python3-pickle python3-audio"
> +RDEPENDS_${PN}-misc += "\
> + ${PN}-core \
> + ${PN}-email \
> + ${PN}-codecs \
> + ${PN}-pydoc \
> + ${PN}-pickle \
> + ${PN}-audio \
> + ${PN}-numbers \
> +"
> RDEPENDS_${PN}-modules_append_class-target = " ${MLPREFIX}python3-misc"
> RDEPENDS_${PN}-modules_append_class-nativesdk = " ${MLPREFIX}python3-misc"
> FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN} ${libdir}/python${PYTHON_MAJMIN}/lib-dynload"
>
>
[-- Attachment #2: Type: text/html, Size: 2192 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-core] [PATCH] python3: add the rdepends for python3-misc
[not found] ` <1617707EBB29F899.26822@lists.openembedded.org>
@ 2020-06-11 17:50 ` Alejandro Hernandez
0 siblings, 0 replies; 3+ messages in thread
From: Alejandro Hernandez @ 2020-06-11 17:50 UTC (permalink / raw)
To: Yu, Mingli, openembedded-core
[-- Attachment #1: Type: text/plain, Size: 2085 bytes --]
Hey, I just tested this and statistics does depend on numbers, this
patch should fix the issue.
python3-misc is treated as a special package where everything that
doesnt belong to another package ends up there, hence its assumed users
know what theyre doing and dependencies for these arent checked
automatically.
Alejandro
Acked-by: Alejandro Hernandez <alhe@linux.microsoft.com>
On 6/11/20 2:38 AM, Alejandro Hernandez wrote:
>
> Hey Mingli,
>
> What are you adding to the image to reproduce this issue?
>
>
> Cheers,
>
> Alejandro
>
> On 6/11/20 1:39 AM, Yu, Mingli wrote:
>> From: Mingli Yu<mingli.yu@windriver.com>
>>
>> * Add python3-numbers to rdepends for python3-misc to fix below error:
>> # python3
>> [snip]
>> >>> import statistics
>> [snip]
>> ModuleNotFoundError: No module named 'numbers'
>>
>> * Don't use the hardcoded python3 moudules rdepends
>>
>> Signed-off-by: Mingli Yu<mingli.yu@windriver.com>
>> ---
>> meta/recipes-devtools/python/python3_3.8.3.bb | 10 +++++++++-
>> 1 file changed, 9 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-devtools/python/python3_3.8.3.bb b/meta/recipes-devtools/python/python3_3.8.3.bb
>> index 09793dade2..997308dc75 100644
>> --- a/meta/recipes-devtools/python/python3_3.8.3.bb
>> +++ b/meta/recipes-devtools/python/python3_3.8.3.bb
>> @@ -331,7 +331,15 @@ INSANE_SKIP_${PN}-dev += "dev-elf"
>>
>> # catch all the rest (unsorted)
>> PACKAGES += "${PN}-misc"
>> -RDEPENDS_${PN}-misc += "python3-core python3-email python3-codecs python3-pydoc python3-pickle python3-audio"
>> +RDEPENDS_${PN}-misc += "\
>> + ${PN}-core \
>> + ${PN}-email \
>> + ${PN}-codecs \
>> + ${PN}-pydoc \
>> + ${PN}-pickle \
>> + ${PN}-audio \
>> + ${PN}-numbers \
>> +"
>> RDEPENDS_${PN}-modules_append_class-target = " ${MLPREFIX}python3-misc"
>> RDEPENDS_${PN}-modules_append_class-nativesdk = " ${MLPREFIX}python3-misc"
>> FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN} ${libdir}/python${PYTHON_MAJMIN}/lib-dynload"
>>
>
>
[-- Attachment #2: Type: text/html, Size: 3212 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-11 17:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11 7:39 [PATCH] python3: add the rdepends for python3-misc Yu, Mingli
2020-06-11 8:38 ` [OE-core] " Alejandro Hernandez
[not found] ` <1617707EBB29F899.26822@lists.openembedded.org>
2020-06-11 17:50 ` Alejandro Hernandez
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.