Also make sure that scripts use python3.
Signed-off-by: Anuj Mittal <[email protected]>
---
recipes-extended/dpdk/dpdk.inc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc
index 9b04881..99d1f69 100644
--- a/recipes-extended/dpdk/dpdk.inc
+++ b/recipes-extended/dpdk/dpdk.inc
@@ -34,7 +34,7 @@ export CONFIG_HAVE_NUMA =
"${@bb.utils.contains('PACKAGECONFIG', 'numa', 'y', 'n
# specific directory
datadir[unexport] = "1"
-RDEPENDS_${PN} += "python-subprocess"
+RDEPENDS_${PN} += "python3-core"
DEPENDS = "virtual/kernel"
do_configure[depends] += "virtual/kernel:do_shared_workdir"
@@ -143,6 +143,10 @@ do_install () {
done
cp -r ${S}/mk ${D}${INSTALL_PATH}/
+
+ for ss in $(find ${D} -type f -name "*.py"); do
+ sed -i -e "1s,#!.*python.*,#!${USRBINPATH}/env python3," ${ss}
+ done
}
PACKAGES += "${PN}-examples ${PN}-test"
--
2.21.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6348):
https://lists.yoctoproject.org/g/meta-intel/message/6348
Mute This Topic: https://lists.yoctoproject.org/mt/70237034/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-