python-importlib-metadata: Add native and nativesdk to BBCLASSEXTEND
PATCH 1/5 python-importlib-metadata: Add native and nativesdk to BBCLASSEXTEND
--- .../recipes-devtools/python/python-importlib-metadata.inc | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python-importlib-metadata.inc +2 -0
@@ -10,3 +10,5 @@ SRC_URI[sha256sum] = "aa18d7378b00b40847790e7c27e11673d7fed219354109d0e7b9e5b25d DEPENDS += "${PYTHON_PN}-setuptools-scm-native" RDEPENDS_${PN} += "${PYTHON_PN}-zipp ${PYTHON_PN}-pathlib2" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.20.1
PATCH 2/5 python-more-itertools: Add native and nativesdk to BBCLASSEXTEND
--- meta-python/recipes-devtools/python/python-more-itertools.inc | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python-more-itertools.inc +2 -0
@@ -2,3 +2,5 @@ DESCRIPTION = "More routines for operating on iterables, beyond itertools" HOMEPAGE = "https://github.com/erikrose/more-itertools" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=3396ea30f9d21389d7857719816f83b5" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.20.1
PATCH 3/5 python-pathlib2: Add native and nativesdk to BBCLASSEXTEND
In reply to Fabio Berton--- meta-python/recipes-devtools/python/python-pathlib2.inc | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python-pathlib2.inc +2 -0
@@ -7,3 +7,5 @@ SRC_URI[md5sum] = "f2bd0a363eb0f8fa0556f35c1d9e66fb" SRC_URI[sha256sum] = "6cd9a47b597b37cc57de1c05e56fb1a1c9cc9fab04fe78c29acd090418529868" RDEPENDS_${PN} += "${PYTHON_PN}-six" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.20.1
PATCH 4/5 python-zipp: Add native and nativesdk to BBCLASSEXTEND
In reply to Fabio Berton--- meta-python/recipes-devtools/python/python-zipp.inc | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python-zipp.inc +2 -0
@@ -8,3 +8,5 @@ SRC_URI[sha256sum] = "3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f DEPENDS += "${PYTHON_PN}-setuptools-scm-native" RDEPENDS_${PN} += "${PYTHON_PN}-more-itertools" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.20.1
Re: [meta-python][PATCH 4/5] python-zipp: Add native and nativesdk to BBCLASSEXTEND
Hello,
A recent upgrade to pytest is missing a runtime module called "zipp" which is a dependency for importlib-metadata. Here is the log from the image built using the latest changes from meta-openembedded layer:
root@intel-corei7-64:~# pytest
Traceback (most recent call last):
File "/usr/bin/pytest", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 3250, in <module>
@_call_aside
File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
f(*args, **kwargs)
File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
ws.require(__requires__)
File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'zipp>=0.5' distribution was not found and is required by importlib-metadata
root@intel-corei7-64:~# pytest --version
Traceback (most recent call last):
File "/usr/bin/pytest", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 3250, in <module>
@_call_aside
File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
f(*args, **kwargs)
File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
ws.require(__requires__)
File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'zipp>=0.5' distribution was not found and is required by importlib-metadata
root@intel-corei7-64:~# python3 --version
Python 3.7.5Please test pytest before upgrading for any missing modules.
Regards,
Chanakya
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Fabio Berton
Sent: Wednesday, November 13, 2019 4:10 AM
To: [email protected]
Subject: [oe] [meta-python][PATCH 4/5] python-zipp: Add native and nativesdk to BBCLASSEXTEND
--- meta-python/recipes-devtools/python/python-zipp.inc | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python-zipp.inc +2 -0
@@ -8,3 +8,5 @@ SRC_URI[sha256sum] = "3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f DEPENDS += "${PYTHON_PN}-setuptools-scm-native" RDEPENDS_${PN} += "${PYTHON_PN}-more-itertools" + +BBCLASSEXTEND = "native nativesdk"
Signature · 7 lines
2.20.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
PATCH 5/5 python3-importlib-metadata: RDEPEND python3-misc only for target and nativesdk
In reply to Fabio BertonPython3 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.
--- .../recipes-devtools/python/python3-importlib-metadata_0.23.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-importlib-metadata_0.23.bb +2 -1
@@ -1,4 +1,5 @@ inherit pypi setuptools3 require python-importlib-metadata.inc -RDEPENDS_${PN} += "python3-misc" +RDEPENDS_${PN}_class-target += "python3-misc" +RDEPENDS_${PN}_class-nativesdk += "python3-misc"
Signature · 1 line
2.20.1