From: Pascal Bach <pascal.b...@nextrem.ch>

This allows it to be used during build in the setup.py of a package.
Like for example done in the astral PyPi package.

Signed-off-by: Pascal Bach <pascal.b...@nextrem.ch>
---
 meta-python/recipes-devtools/python/python-pytz.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta-python/recipes-devtools/python/python-pytz.inc 
b/meta-python/recipes-devtools/python/python-pytz.inc
index 19be2c7..73106da 100755
--- a/meta-python/recipes-devtools/python/python-pytz.inc
+++ b/meta-python/recipes-devtools/python/python-pytz.inc
@@ -8,8 +8,10 @@ inherit pypi
 SRC_URI[md5sum] = "8660ba7c3c0abd23e6e4efa493b02966"
 SRC_URI[sha256sum] = 
"8787de03f35f31699bcaf127e56ad14c00647965ed24d72dbaca87c6e4f843a3"
 
-RDEPENDS_${PN} += "\
+RDEPENDS_${PN}_class-target += "\
     ${PYTHON_PN}-datetime \
     ${PYTHON_PN}-io \
     ${PYTHON_PN}-threading \
 "
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.1.4

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to