[OE-core] [CONSOLIDATED PULL 17/17] python: skip setup.py 'import check' when cross-compiling

Cui, Dexuan dexuan.cui at intel.com
Thu Nov 10 01:25:46 UTC 2011


Zanussi, Tom wrote on 2011-11-10:
> On Wed, 2011-11-09 at 16:57 -0800, Cui, Dexuan wrote:
>> Zanussi, Tom wrote on 2011-11-09:
>>> On Wed, 2011-11-09 at 02:34 -0800, Cui, Dexuan wrote:
>>>> How I wish I could notice the patch this morning so I could save 1 day!
>>>> 
>>> 
>>> ??? Can you please explain what you mean?
>> I meant I spent 1 day on debugging the same issue and got the cause
>> but wasn't sure how the patch should be made, so I wanted to ask for
>> suggestion in the ML and before that I tried to find out if anybody
>> reported the same issue and I saw your patch that was sent 1.5 days
>> ago... :-)
>> 
> 
> Yeah, sure - I'm just kind of curious since I'd never seen it before
> until I added the avx instruction support.
Actually I think the issue is always there(at least from when python was upgrade to 2.7.x).
e.g., in target, run "python" and try "import grp", we'll get an error saying the built-in module grp couldn't be found; in python's log.do_compile, we can see the obvious warnings.

> 
> Just out of curiosity, what were your host and target arches?
I'm trying the task "self hosted image"(https://wiki.yoctoproject.org/wiki/Build_Appliance_Design):
in target, I found bitbake's do_package failed because "import grp" failed, so I had to look into the issue.

Thanks,
-- Dexuan




More information about the Openembedded-core mailing list