Skip to contentSkip to conversation

python3-atomicwrites: add BBCLASSEXTEND

PATCH New Ross Burton 1 participant 3 messages Feb 20, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 python3-atomicwrites: add BBCLASSEXTEND

Needed to build a native python3-pytest.

---
 meta/recipes-devtools/python/python3-atomicwrites_1.4.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-devtools/python/python3-atomicwrites_1.4.1.bb +2 -0
index d4d15cea509..9f58a4bf1ff 100644
@@ -22,3 +22,5 @@ do_install_ptest() {
 }
 
 RDEPENDS:${PN} = "${PYTHON_PN}-misc"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 2/3 python3-iniconfig: add BBCLASSEXTEND

Needed to build a native python3-pytest.

---
 meta/recipes-devtools/python/python3-iniconfig_2.0.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-devtools/python/python3-iniconfig_2.0.0.bb +2 -0
index ca50ebbc352..2abeec62f4c 100644
@@ -9,3 +9,5 @@ SRC_URI[sha256sum] = "2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a4
 DEPENDS += "python3-hatch-vcs-native"
 
 inherit pypi python_hatchling
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
#2 lore raw

PATCH v2 3/3 python3-pytest: set RDEPENDS globally, not just target

In reply to Ross Burton

Now that we have the dependencies we can set the RDEPENDS for all builds, not just target.

---
 meta/recipes-devtools/python/python3-pytest_7.2.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-pytest_7.2.1.bb +1 -1
index 105b76a4a64..c7610d440c1 100644
@@ -11,7 +11,7 @@ DEPENDS += "python3-setuptools-scm-native"
 
 inherit update-alternatives pypi python_setuptools_build_meta
 
-RDEPENDS:${PN}:class-target += " \
+RDEPENDS:${PN} += " \
     ${PYTHON_PN}-atomicwrites \
     ${PYTHON_PN}-attrs \
     ${PYTHON_PN}-debugger \
Signature · 1 line
2.34.1