diff options
Diffstat (limited to 'meta/classes/distutils.bbclass')
| -rw-r--r-- | meta/classes/distutils.bbclass | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass index 12f26036fa..6ed7ecc99f 100644 --- a/meta/classes/distutils.bbclass +++ b/meta/classes/distutils.bbclass | |||
| @@ -42,12 +42,8 @@ distutils_do_install() { | |||
| 42 | bbfatal "${PYTHON_PN} setup.py install execution failed." | 42 | bbfatal "${PYTHON_PN} setup.py install execution failed." |
| 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 | # only modify file if it contains path to avoid recompilation on the target |
| 46 | # only modify file if it contains path to avoid recompilation on the target | 46 | find ${D} -name "*.py" -exec grep -q ${D} {} \; -exec sed -i -e s:${D}::g {} \; |
| 47 | if grep -q "${D}" "$i"; then | ||
| 48 | sed -i -e s:${D}::g "$i" | ||
| 49 | fi | ||
| 50 | done | ||
| 51 | 47 | ||
| 52 | if test -e ${D}${bindir} ; then | 48 | if test -e ${D}${bindir} ; then |
| 53 | for i in ${D}${bindir}/* ; do \ | 49 | for i in ${D}${bindir}/* ; do \ |
