summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/distutils.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass
index f3da023942..12f26036fa 100644
--- a/meta/classes/distutils.bbclass
+++ b/meta/classes/distutils.bbclass
@@ -43,7 +43,10 @@ distutils_do_install() {
43 43
44 # support filenames with *spaces* 44 # support filenames with *spaces*
45 find ${D} -name "*.py" -print0 | while read -d $'\0' i ; do \ 45 find ${D} -name "*.py" -print0 | while read -d $'\0' i ; do \
46 sed -i -e s:${D}::g "$i" 46 # only modify file if it contains path to avoid recompilation on the target
47 if grep -q "${D}" "$i"; then
48 sed -i -e s:${D}::g "$i"
49 fi
47 done 50 done
48 51
49 if test -e ${D}${bindir} ; then 52 if test -e ${D}${bindir} ; then