Skip to contentSkip to conversation

python-chardet: add a separate package for the cli utils

PATCH New Derek Straka 1 participant 2 messages Nov 29, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python-chardet: add a separate package for the cli utils

---
 meta-python/recipes-devtools/python/python-chardet.inc | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python-chardet.inc +6 -0
index 6035488..316e2c1 100644
@@ -11,3 +11,9 @@ SRC_URI[md5sum] = "7dd1ba7f9c77e32351b0a0cfacf4055c"
 SRC_URI[sha256sum] = "84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"
 
 BBCLASSEXTEND = "native nativesdk"
+
+PACKAGES =+ "${PN}-cli"
+RDEPENDS_${PN}-cli = "${PN} "
+FILES_${PN}-cli += " \
+    ${PYTHON_SITEPACKAGES_DIR}/chardet/cli \
+"
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 python-chardet: fix the RDEPENDS to work on a minimal python install

---
 meta-python/recipes-devtools/python/python-chardet.inc | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python-chardet.inc +5 -0
index 316e2c1..246a65a 100644
@@ -17,3 +17,8 @@ RDEPENDS_${PN}-cli = "${PN} "
 FILES_${PN}-cli += " \
     ${PYTHON_SITEPACKAGES_DIR}/chardet/cli \
 "
+
+RDEPENDS_${PN}_class-target += " \
+    ${PYTHON_PN}-argparse \
+    ${PYTHON_PN}-logging \
+"
Signature · 1 line
2.7.4