Commit Graph

4 Commits

Author SHA1 Message Date
Nicola Lunghi
4a49ee1f6c python3-importlib-metadata: fix class-target overriding default dependencies
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>
2019-11-19 23:33:03 -08:00
Fabio Berton
fcda3fb1a3 python3-importlib-metadata: RDEPEND python3-misc only for target and nativesdk
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>
2019-11-13 07:17:03 -08:00
Hongxu Jia
894a6e333d python3-importlib-metadata: add python3-misc to runtime depends
...
$ 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>
2019-11-06 19:58:01 -08:00
Yuan Chao
f5788587c9 python-importlib-metadata: new recipe
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>
2019-09-19 00:09:43 -07:00