diff options
| author | Khem Raj <raj.khem@gmail.com> | 2020-01-21 18:50:33 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-01-22 09:56:35 -0800 |
| commit | e47f8dfd8399044045c1273a6ae735fd24da349c (patch) | |
| tree | 62f24b619b0de83ef1fb96536729556d257257e6 /meta-oe/recipes-dbs | |
| parent | b5cce2f54fd922877c1b8c796292d6d608bcc7f9 (diff) | |
| download | meta-openembedded-e47f8dfd8399044045c1273a6ae735fd24da349c.tar.gz | |
mysql-python: Enable only when meta-py2 is present
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-dbs')
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb b/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb index 6d52222ce4..f1c2b7701c 100644 --- a/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb +++ b/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb | |||
| @@ -16,4 +16,9 @@ SRC_URI[sha256sum] = "811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e | |||
| 16 | 16 | ||
| 17 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 17 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 18 | 18 | ||
| 19 | inherit setuptools3 | 19 | inherit setuptools |
| 20 | |||
| 21 | python() { | ||
| 22 | if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split(): | ||
| 23 | raise bb.parse.SkipRecipe('Requires meta-python2 to be present.') | ||
| 24 | } | ||
