mysql-python: Enable only when meta-py2 is present

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2020-01-21 18:50:33 -08:00
parent b5cce2f54f
commit e47f8dfd83
2 changed files with 8 additions and 2 deletions
@@ -101,8 +101,9 @@ RDEPENDS_packagegroup-meta-oe-bsp_remove_riscv32 = "efivar efibootmgr"
RDEPENDS_packagegroup-meta-oe-dbs ="\ RDEPENDS_packagegroup-meta-oe-dbs ="\
leveldb libdbi mariadb mariadb-native \ leveldb libdbi mariadb mariadb-native \
mysql-python postgresql psqlodbc rocksdb soci \ postgresql psqlodbc rocksdb soci \
sqlite \ sqlite \
${@bb.utils.contains("BBPATH", "meta-python2", "mysql-python", "", d)} \
" "
RDEPENDS_packagegroup-meta-oe-devtools ="\ RDEPENDS_packagegroup-meta-oe-devtools ="\
@@ -16,4 +16,9 @@ SRC_URI[sha256sum] = "811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e
S = "${WORKDIR}/${SRCNAME}-${PV}" S = "${WORKDIR}/${SRCNAME}-${PV}"
inherit setuptools3 inherit setuptools
python() {
if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split():
raise bb.parse.SkipRecipe('Requires meta-python2 to be present.')
}