[oe-commits] [openembedded-core] 32/59: bmap-tools: switch to Python 3

git at git.openembedded.org git at git.openembedded.org
Mon Sep 11 16:31:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 0d6130b30a1219b2bc2c57578f291311f69c676e
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Wed Sep 6 15:08:24 2017 +0300

    bmap-tools: switch to Python 3
    
    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 at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-support/bmap-tools/bmap-tools_3.4.bb | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb b/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb
index 3f75fad..7454f9d 100644
--- a/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb
+++ b/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb
@@ -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
-}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list