]> code.ossystems Code Review - openembedded-core.git/commitdiff
bmap-tools: switch to Python 3
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 6 Sep 2017 12:08:24 +0000 (15:08 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Sep 2017 16:30:12 +0000 (17:30 +0100)
bmap-tools is the only recipe in oe-core that still uses
Python 2. Switching it to Python 3 should help to get rid of
building native Python 2 and its dependencies.

[YOCTO #11891]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/bmap-tools/bmap-tools_3.4.bb

index 3f75fad44b417677e77e9dfaab3e99c46b824028..7454f9db7510d5562b209df7ae58762f79e72330 100644 (file)
@@ -16,10 +16,7 @@ S = "${WORKDIR}/git"
 
 RDEPENDS_${PN} = "python-core python-compression python-mmap"
 
-inherit setuptools
+inherit python3native
+inherit setuptools3
 
 BBCLASSEXTEND = "native"
-
-do_install_append_class-native() {
-    sed -i -e 's|^#!.*/usr/bin/python-native/python|#! /usr/bin/env nativepython|' ${D}${bindir}/bmaptool
-}