Skip to contentSkip to conversation

python-pymongo: split the package into bson and original pymongo package

PATCH New Derek Straka 1 participant 1 message Sep 18, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-pymongo: split the package into bson and original pymongo package

---
 meta-python/recipes-devtools/python/python-pymongo.inc   | 16 ++++++++++++----
 .../recipes-devtools/python/python3-pymongo_3.5.1.bb     |  2 +-
 2 files changed, 13 insertions(+), 5 deletions(-)
meta-python/recipes-devtools/python/python-pymongo.inc +12 -4
index 29c2a3f..7f199b4 100644
@@ -11,9 +11,17 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2a944942e1496af1886903d274dedb13"
 SRC_URI[md5sum] = "35ae53073a25603591e085b18bc5a0ec"
 SRC_URI[sha256sum] = "e820d93414f3bec1fa456c84afbd4af1b43ff41366321619db74e6bc065d6924"
 
+PACKAGES =+ "${PYTHON_PN}-bson"
+
+FILES_${PYTHON_PN}-bson = "${PYTHON_SITEPACKAGES_DIR}/bson/*"
+
+RDEPENDS_${PYTHON_PN}-bson += " \
+     ${PYTHON_PN}-datetime \
+     ${PYTHON_PN}-netclient \
+     ${PYTHON_PN}-numbers \
+     ${PYTHON_PN}-threading \
+"
+
 RDEPENDS_${PN} += " \
-    ${PYTHON_PN}-datetime \
-    ${PYTHON_PN}-netclient \
-    ${PYTHON_PN}-numbers \
-    ${PYTHON_PN}-threading \
+    ${PYTHON_PN}-bson \
 "
meta-python/recipes-devtools/python/python3-pymongo_3.5.1.bb +1 -1
index 3b250a1..9f02cab 100644
@@ -2,7 +2,7 @@ inherit pypi setuptools3
 require python-pymongo.inc
 
 # Requires _pydecimal which is in misc
-RDEPENDS_${PN} += " \
+RDEPENDS_${PYTHON_PN}-bson += " \
     ${PYTHON_PN}-enum \
     ${PYTHON_PN}-misc \
     ${PYTHON_PN}-selectors \
Signature · 1 line
2.7.4