* distutils: Replacing path to native path only to be done to non-native python packages
@ 2013-09-20 2:35 Amy Fong
2013-09-20 8:04 ` Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Amy Fong @ 2013-09-20 2:35 UTC (permalink / raw)
To: openembedded-devel
distutils: Replacing path to native path only to be done to non-native python packages
distutils: Replacing path to native python by path to python in the
image to support python packages with console-script setup resulted in
a "bad interpreter" error message because coreutils-native is not
a specified dependency of a number of native python packages.
We modify the change to apply specifically to non-native packages.
Signed-off-by: Amy Fong <Amy.Fong@windriver.com>
---
meta/classes/distutils.bbclass | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass
index 60cf9ee..fbe0ec8 100644
--- a/meta/classes/distutils.bbclass
+++ b/meta/classes/distutils.bbclass
@@ -47,14 +47,18 @@ distutils_do_install() {
if test -e ${D}${bindir} ; then
for i in ${D}${bindir}/* ; do \
- sed -i -e s:${STAGING_BINDIR_NATIVE}/python-native/python:${bindir}/env\ python:g $i
+ if [ ${PN} != "${BPN}-native" ]; then
+ sed -i -e s:${STAGING_BINDIR_NATIVE}/python-native/python:${bindir}/env\ python:g $i
+ fi
sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
done
fi
if test -e ${D}${sbindir}; then
for i in ${D}${sbindir}/* ; do \
- sed -i -e s:${STAGING_BINDIR_NATIVE}/python-native/python:${bindir}/env\ python:g $i
+ if [ ${PN} != "${BPN}-native" ]; then
+ sed -i -e s:${STAGING_BINDIR_NATIVE}/python-native/python:${bindir}/env\ python:g $i
+ fi
sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
done
fi
--
1.7.12.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: distutils: Replacing path to native path only to be done to non-native python packages
2013-09-20 2:35 distutils: Replacing path to native path only to be done to non-native python packages Amy Fong
@ 2013-09-20 8:04 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2013-09-20 8:04 UTC (permalink / raw)
To: Amy Fong; +Cc: openembedded-devel
Hi Amy,
On Thursday 19 September 2013 22:35:29 Amy Fong wrote:
> distutils: Replacing path to native path only to be done to non-native
> python packages
>
> distutils: Replacing path to native python by path to python in the
> image to support python packages with console-script setup resulted in
> a "bad interpreter" error message because coreutils-native is not
> a specified dependency of a number of native python packages.
>
> We modify the change to apply specifically to non-native packages.
>
> Signed-off-by: Amy Fong <Amy.Fong@windriver.com>
> ---
> meta/classes/distutils.bbclass | 8 ++++++--
This is a patch for OE-Core, so it needs to be sent to the openembedded-
core@lists.openembedded.org mailing list.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-20 8:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-20 2:35 distutils: Replacing path to native path only to be done to non-native python packages Amy Fong
2013-09-20 8:04 ` Paul Eggleton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.