Skip to content

Commit

Permalink
[Recipe/NNStreamer] Revise dependencies on python/python3
Browse files Browse the repository at this point in the history
This patch revises dependencies on python/python3. Note that unittest
tools included in NNStreamer are not compatible with python3. For this
reason, RDEPENDS of the unittest package on python3 packages are
removed. From now, the unittest package has runtime dependencies on
only python2 packages.

Signed-off-by: Wook Song <[email protected]>
  • Loading branch information
wooksong authored and jijoongmoon committed Sep 25, 2019
1 parent a8bbc26 commit 79b0306
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes-nnstreamer/nnstreamer/nnstreamer_0.2.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ DEPENDS = "orc-native glib-2.0 gstreamer1.0 gstreamer1.0-plugins-base gtest"
DEPENDS += "\
${@bb.utils.contains('DISTRO_FEATURES','tensorflow-lite','tensorflow-lite','',d)} \
"
DEPENDS += "python python-numpy python3 python3-numpy"

SRC_URI = "\
git://github.com/nnsuite/nnstreamer.git;protocol=https \
Expand Down Expand Up @@ -67,13 +68,16 @@ FILES_${PN}-tensorflow-lite += "\
'${libdir}/nnstreamer/filters/libnnstreamer_filter_tensorflow-lite.so','',d)} \
"

RDEPENDS_${PN}-unittest = "nnstreamer gstreamer1.0-plugins-good python3-numpy python3-math ssat python-math python-numpy"
RDEPENDS_${PN}-unittest = "nnstreamer gstreamer1.0-plugins-good ssat"
RDEPENDS_${PN}-unittest += "python python-numpy python-numbers python-unittest python-misc"
RDEPENDS_${PN}-unittest += "\
${@bb.utils.contains('DISTRO_FEATURES','tensorflow-lite', \
'${PN}-tensorflow-lite','',d)} \
"

RDEPENDS_${PN} = "glib-2.0 gstreamer1.0 gstreamer1.0-plugins-base"
RDEPENDS_${PN} += "python python-numpy python-math"
RDEPENDS_${PN} += "python3 python3-numpy python3-math"

FILES_${PN}-dev = "\
${includedir}/nnstreamer/* \
Expand Down

0 comments on commit 79b0306

Please sign in to comment.