Skip to contentSkip to conversation

python-pytz: provide native and nativesdk version for pytz

PATCH New Pascal Bach 1 participant 1 message Jan 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-pytz: provide native and nativesdk version for pytz

From: Pascal Bach <[email protected]>

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

---
 meta-python/recipes-devtools/python/python-pytz.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-pytz.inc +3 -1
index 19be2c7..73106da 100755
@@ -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"
Signature · 1 line
2.1.4