python3: add the rdepends for python3-misc
PATCH 1/1 python3: add the rdepends for python3-misc
From: Mingli Yu <[email protected]>
* Add python3-numbers to rdepends for python3-misc to fix below error:
# python3 [snip]
Quoted 1 line
Quoted 1 line
Quoted 1 line
import statistics
[snip]
ModuleNotFoundError: No module named 'numbers'
* Don't use the hardcoded python3 moudules rdepends
--- meta/recipes-devtools/python/python3_3.8.3.bb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
meta/recipes-devtools/python/python3_3.8.3.bb +9 -1
@@ -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"
Signature · 1 line
2.24.1
Hey Mingli,
What are you adding to the image to reproduce this issue?
Cheers,
Alejandro
Quoted 39 lines · Mingli
From: Mingli Yu <[email protected]>
* Add python3-numbers to rdepends for python3-misc to fix below error:
# python3 [snip]Quoted 1 line
Quoted 1 line
Quoted 1 line
import statistics
[snip]
ModuleNotFoundError: No module named 'numbers'* Don't use the hardcoded python3 moudules rdepends
Signed-off-by Mingli Yu <[email protected]>--- meta/recipes-devtools/python/python3_3.8.3.bb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)meta/recipes-devtools/python/python3_3.8.3.bb +9
-1@@ -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"
A message that is not in the archive (sent off-list or not yet received): [email protected]
Alejandro Hernandez
Acked-byHey, 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
Quoted 51 lines · Alejandro Hernandez
Hey Mingli,
What are you adding to the image to reproduce this issue?
Cheers,
Alejandro
Quoted 38 lines · Mingli
From: Mingli Yu<[email protected]>
* Add python3-numbers to rdepends for python3-misc to fix below error:
# python3 [snip]Quoted 1 line
Quoted 1 line
Quoted 1 line
import statistics
[snip]
ModuleNotFoundError: No module named 'numbers'* Don't use the hardcoded python3 moudules rdepends
Signed-off-by Mingli Yu<[email protected]>--- meta/recipes-devtools/python/python3_3.8.3.bb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)meta/recipes-devtools/python/python3_3.8.3.bb +9
-1@@ -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"