python3-iso8601: add python3-numbers to RDEPENDS
PATCH 1/1 python3-iso8601: add python3-numbers to RDEPENDS
python3-iso8601 relies on the decimal module from the standard library, but it is not in iso8601's RDEPENDS:
root@qemux86-64:~# python3 │tgamblin@ala-lpggp3$vim meta/recipes-core/packagegroups/packagegroup-core-tools-testimage.bb
Python 3.8.2 (default, Feb 25 2020, 10:39:28) │
[GCC 9.3.0] on linux │tgamblin@ala-lpggp3$command -v ctop >/dev/null 2>&1 || { echo >&2 "I require top but it is not installed";}
Type "help", "copyright", "credits" or "license" for more information. │I require top but it is not installedQuoted 1 line
Quoted 1 line
Quoted 1 line
import iso8601 │tgamblin@ala-lpggp3$command -v ctop >/dev/null 2>&1 || { echo >&2 "I require ctop but it is not installed";}
Traceback (most recent call last): │I require ctop but it is not installed
File "<stdin>", line 1, in <module> │tgamblin@ala-lpggp3$command -v top
File "/usr/lib/python3.8/site-packages/iso8601/__init__.py", line 1, in <module> │/usr/bin/top
from .iso8601 import * │tgamblin@ala-lpggp3$which awk
File "/usr/lib/python3.8/site-packages/iso8601/iso8601.py", line 12, in <module> │/usr/bin/awk
from decimal import Decimal │tgamblin@ala-lpggp3$file /usr/bin/awkModuleNotFoundError: No module named 'decimal'
Add it to RDEPENDS to fix the import error.
Signed-off-by Trevor Gamblin <[email protected]>
--- meta-python/recipes-devtools/python/python-iso8601.inc | 1 + 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python-iso8601.inc +1 -0
@@ -8,6 +8,7 @@ SRC_URI[sha256sum] = "49c4b20e1f38aa5cf109ddcd39647ac419f928512c869dc01d5c7098ed RDEPENDS_${PN} += "\ ${PYTHON_PN}-datetime \ + ${PYTHON_PN}-numbers \ " BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1