Skip to contentSkip to conversation

python-can: correct the RDEPENDS to work on a minimal python install

PATCH New Derek Straka 1 participant 1 message Nov 29, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-can: correct the RDEPENDS to work on a minimal python install

---
 meta-python/recipes-devtools/python/python-can.inc         | 11 +++++++++++
 meta-python/recipes-devtools/python/python-can_2.0.0b1.bb  |  4 +++-
 meta-python/recipes-devtools/python/python3-can_2.0.0b1.bb |  5 ++++-
 3 files changed, 18 insertions(+), 2 deletions(-)
meta-python/recipes-devtools/python/python-can.inc +11 -0
index 1dbc809..ecfae3c 100644
@@ -7,3 +7,14 @@ SRC_URI[md5sum] = "b2a164887c1c6a2a2490b5afb36e36db"
 SRC_URI[sha256sum] = "b961b6ce75a7f08b586f4d2cae8cdc409881731b851fc405fa21cb16bad00d87"
 
 PYPI_PACKAGE="python-can"
+
+RDEPENDS_${PN}_class-target += "\
+    ${PYTHON_PN}-argparse \
+    ${PYTHON_PN}-ctypes \
+    ${PYTHON_PN}-importlib \
+    ${PYTHON_PN}-logging \
+    ${PYTHON_PN}-misc \
+    ${PYTHON_PN}-netserver \
+    ${PYTHON_PN}-subprocess \
+    ${PYTHON_PN}-sqlite3 \
+"
meta-python/recipes-devtools/python/python-can_2.0.0b1.bb +3 -1
index ec81a9e..a698ad3 100644
@@ -1,4 +1,6 @@
 require python-can.inc
 inherit pypi setuptools
 
-RDEPENDS_${PN} += "python-sqlite3"
+RDEPENDS_${PN}_class-target += "\
+    ${PYTHON_PN}-zlib \
+"    
meta-python/recipes-devtools/python/python3-can_2.0.0b1.bb +4 -1
index a1d45b8..aaa9e81 100644
@@ -1,4 +1,7 @@
 require python-can.inc
 inherit pypi setuptools3
 
-RDEPENDS_${PN} += "python3-sqlite3"
+RDEPENDS_${PN}_class-target += "\
+    ${PYTHON_PN}-codecs \
+    ${PYTHON_PN}-compression \
+"
Signature · 1 line
2.7.4