mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-09 17:59:26 +00:00
guider: Build only when meta-py2 is in mix
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@ SRCREV = "fef25c41efb9bde0614ea477d0b90bd9565ae0b4"
|
|||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
R = "${RECIPE_SYSROOT}"
|
R = "${RECIPE_SYSROOT}"
|
||||||
|
|
||||||
inherit distutils3
|
inherit distutils
|
||||||
|
|
||||||
GUIDER_OBJ = "guider.pyc"
|
GUIDER_OBJ = "guider.pyc"
|
||||||
GUIDER_SCRIPT = "guider"
|
GUIDER_SCRIPT = "guider"
|
||||||
@@ -31,5 +31,9 @@ do_install() {
|
|||||||
install -v -m 0755 ${STAGING_LIBDIR_NATIVE}/python${PYTHON_BASEVERSION}/site-packages/${BPN}/${GUIDER_OBJ} ${D}${datadir}/${BPN}/${GUIDER_OBJ}
|
install -v -m 0755 ${STAGING_LIBDIR_NATIVE}/python${PYTHON_BASEVERSION}/site-packages/${BPN}/${GUIDER_OBJ} ${D}${datadir}/${BPN}/${GUIDER_OBJ}
|
||||||
}
|
}
|
||||||
|
|
||||||
RDEPENDS_${PN} = "python3-ctypes python3-shell \
|
RDEPENDS_${PN} = "python-ctypes python-shell \
|
||||||
python3-json python3-subprocess"
|
python-json python-subprocess"
|
||||||
|
python() {
|
||||||
|
if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split():
|
||||||
|
raise bb.parse.SkipRecipe('Requires meta-python2 to be present.')
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user