From 9e6dd607f5772035449732b64b1c61c0e97bb69f Mon Sep 17 00:00:00 2001 From: Patrick Zysset Date: Mon, 29 Oct 2018 18:23:55 +0100 Subject: [PATCH] board-descriptor: update dependencies to python3 remove all python2.x dependencies and replaced them with python 3.5 libs. BugzID: 53706 Signed-off-by: Patrick Zysset --- recipes-core/board-descriptor/board-descriptor.bb | 6 +++--- recipes-core/board-descriptor/board-descriptor/bd.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes-core/board-descriptor/board-descriptor.bb b/recipes-core/board-descriptor/board-descriptor.bb index 9ef30ed..23cfb00 100644 --- a/recipes-core/board-descriptor/board-descriptor.bb +++ b/recipes-core/board-descriptor/board-descriptor.bb @@ -9,7 +9,7 @@ LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" PR = "r0" -RDEPENDS_${PN} = "python-json python-textutils" +RDEPENDS_${PN} = "python3-json" SRC_URI = " \ file://bd.py \ @@ -30,8 +30,8 @@ do_install () { install -d ${D}${bindir} install -m 0755 bd.py ${D}${bindir}/bd - install -d ${D}${libdir}/python2.7/ - install -m 0644 descriptor.py ${D}${libdir}/python2.7/ + install -d ${D}${libdir}/python3.5/ + install -m 0644 descriptor.py ${D}${libdir}/python3.5/ install -d ${D}${sysconfdir}/bd install -m 0644 *.json ${D}${sysconfdir}/bd/ diff --git a/recipes-core/board-descriptor/board-descriptor/bd.py b/recipes-core/board-descriptor/board-descriptor/bd.py index b36cf51..9223432 100755 --- a/recipes-core/board-descriptor/board-descriptor/bd.py +++ b/recipes-core/board-descriptor/board-descriptor/bd.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from optparse import OptionParser import json