in commit fcda3fb1a3
python3-importlib-metadata: RDEPEND python3-misc only for target and nativesdk
The RDEPENDS for class target was "appended" with +=
RDEPENDS_${PN}_class-target += "python3-misc"
Using += for class target does't append the dependencies to
the existing one, instead what it does is overwrite it.
This was causing the RDEPENDS to be wrongly set only to python3-misc
not including the one included in the inc file (zipp, pathlib2).
Use append instead.
Signed-off-by: Nicola Lunghi <nick83ola@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Python3 recipe rprovides python3-misc only for target and nativesdk,
but if we have some recipe that rdepends python3-misc and has native
in BBCLASSEXTEND bitbake raises an error showing that nothing rprovides
python3-misc-native.
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
...
$ python3
$ >>> import importlib_metadata
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.7/site-packages/importlib_metadata/__init__.py", line 15, in <module>
from ._compat import (
File "/usr/lib/python3.7/site-packages/importlib_metadata/_compat.py", line 28, in <module>
import pathlib
ModuleNotFoundError: No module named 'pathlib'
...
Module pathlib comes from python3-misc
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Add new recipe python-importlib-metadata as it is RDEPEND of python-pytest.
Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>