aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Straka <derek@asterius.io>2017-09-18 16:29:51 -0400
committerMartin Jansa <Martin.Jansa@gmail.com>2017-09-22 22:50:44 +0000
commit7f63c70bbd825f5d6c535ff10b1acfa831d8701d (patch)
tree2e7fcde7906856e30bf155749de1a860439defcc
parent79730c917a68c27a3d9bc6bfee6e945f2daeabed (diff)
downloadmeta-openembedded-contrib-7f63c70bbd825f5d6c535ff10b1acfa831d8701d.tar.gz
meta-openembedded-contrib-7f63c70bbd825f5d6c535ff10b1acfa831d8701d.tar.bz2
meta-openembedded-contrib-7f63c70bbd825f5d6c535ff10b1acfa831d8701d.zip
python-pymongo: split the package into bson and original pymongo package
Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-python/recipes-devtools/python/python-pymongo.inc16
-rw-r--r--meta-python/recipes-devtools/python/python3-pymongo_3.5.1.bb2
2 files changed, 13 insertions, 5 deletions
diff --git a/meta-python/recipes-devtools/python/python-pymongo.inc b/meta-python/recipes-devtools/python/python-pymongo.inc
index 29c2a3f89b..7f199b46b0 100644
--- a/meta-python/recipes-devtools/python/python-pymongo.inc
+++ b/meta-python/recipes-devtools/python/python-pymongo.inc
@@ -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 \
"
diff --git a/meta-python/recipes-devtools/python/python3-pymongo_3.5.1.bb b/meta-python/recipes-devtools/python/python3-pymongo_3.5.1.bb
index 3b250a16bf..9f02cab137 100644
--- a/meta-python/recipes-devtools/python/python3-pymongo_3.5.1.bb
+++ b/meta-python/recipes-devtools/python/python3-pymongo_3.5.1.bb
@@ -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 \