diff options
author | Randy Witt <randy.e.witt@linux.intel.com> | 2015-07-10 14:03:21 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-12 22:55:46 +0100 |
commit | 76993861a1b9e1350853192df4d699254d74f319 (patch) | |
tree | 56ce64a5a32403938fe302672457ead4045dfa67 /meta/recipes-devtools/python | |
parent | 2ec97a252f54eaeeb86db56491430f1dd16a581f (diff) | |
download | poky-76993861a1b9e1350853192df4d699254d74f319.tar.gz |
python-smartpm: Have native smart use nativepython
Currently when trying to use smart via devshell or in the bitbake
environment, it will fail without inheriting pythonnative. Since the
native tools should "just work" use nativepython in the shebang line for
smart.
(From OE-Core rev: 4d4d9e8aa68a185b330ffbdb2e084b31fa6a6451)
Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r-- | meta/recipes-devtools/python/python-smartpm_git.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm_git.bb b/meta/recipes-devtools/python/python-smartpm_git.bb index ed786e458e..18df892b9b 100644 --- a/meta/recipes-devtools/python/python-smartpm_git.bb +++ b/meta/recipes-devtools/python/python-smartpm_git.bb | |||
@@ -97,6 +97,7 @@ add_native_wrapper() { | |||
97 | } | 97 | } |
98 | 98 | ||
99 | do_install_append_class-native() { | 99 | do_install_append_class-native() { |
100 | sed -i -e 's|^#!.*/usr/bin/env python|#! /usr/bin/env nativepython|' ${D}${bindir}/smart | ||
100 | add_native_wrapper | 101 | add_native_wrapper |
101 | } | 102 | } |
102 | 103 | ||