aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-05-04 11:58:05 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-05-11 17:02:22 +0100
commit080197bf3bdf612da8104c2ae7f0b2c8dea32a0b (patch)
tree10a35728d551c7dfd2b5d17fff339cfe42813162 /meta/recipes-devtools/python
parentbe901200d94beaa35e1d05eb502b117b3b523609 (diff)
downloadopenembedded-core-080197bf3bdf612da8104c2ae7f0b2c8dea32a0b.tar.gz
python.inc: Fix python2/3 hosttools path references
Both native and target versions of this file reference mkdir and install in hosttools paths. Use the version from PATH instead. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python.inc b/meta/recipes-devtools/python/python.inc
index b9ec69275a..b4bce24edb 100644
--- a/meta/recipes-devtools/python/python.inc
+++ b/meta/recipes-devtools/python/python.inc
@@ -30,3 +30,9 @@ EXTRA_OECONF = "\
ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no \
${PYTHONLSBOPTS} \
"
+
+do_install_append () {
+ sed -i -e 's:${HOSTTOOLS_DIR}/install:install:g' \
+ -e 's:${HOSTTOOLS_DIR}/mkdir:mkdir:g' \
+ ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py
+}