All of lore.kernel.org
 help / color / mirror / Atom feed
* distutils break my shebang, what to do?
@ 2016-12-16  1:49 Daniel.
  2016-12-16 17:04 ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel. @ 2016-12-16  1:49 UTC (permalink / raw)
  To: yocto

Hi,

I've been trying to install cxxtest to nativesdk. After done I went to
run`cxxtestgen` and got a "bad interpreter" error from bash. I look at
the script and there was "#! python" at first line.

I know that this is something that distutils does. I also know that
SDK ships its own python interpreter. So what is the right way to
approach this problem?

Regards,

-- 
"Do or do not. There is no try"
  Yoda Master


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: distutils break my shebang, what to do?
  2016-12-16  1:49 distutils break my shebang, what to do? Daniel.
@ 2016-12-16 17:04 ` Khem Raj
  2016-12-16 17:29   ` Daniel.
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2016-12-16 17:04 UTC (permalink / raw)
  To: Daniel.; +Cc: yocto


> On Dec 15, 2016, at 5:49 PM, Daniel. <danielhilst@gmail.com> wrote:
> 
> Hi,
> 
> I've been trying to install cxxtest to nativesdk. After done I went to
> run`cxxtestgen` and got a "bad interpreter" error from bash. I look at
> the script and there was "#! python" at first line.
> 
> I know that this is something that distutils does. I also know that
> SDK ships its own python interpreter. So what is the right way to
> approach this problem?

sed it out to right location when doing nativesdk build.

> 
> Regards,
> 
> -- 
> "Do or do not. There is no try"
>  Yoda Master
> -- 
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: distutils break my shebang, what to do?
  2016-12-16 17:04 ` Khem Raj
@ 2016-12-16 17:29   ` Daniel.
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel. @ 2016-12-16 17:29 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

Well this is what I'm already doing, for target, nativesdk and native...

do_install_append() {
    sed '1c\
#!/usr/bin/env python' -i ${D}${bindir}/myscript
}

Should I use do_install_class-nativesdk_append instead?

Regards,

2016-12-16 15:04 GMT-02:00 Khem Raj <raj.khem@gmail.com>:
>
>> On Dec 15, 2016, at 5:49 PM, Daniel. <danielhilst@gmail.com> wrote:
>>
>> Hi,
>>
>> I've been trying to install cxxtest to nativesdk. After done I went to
>> run`cxxtestgen` and got a "bad interpreter" error from bash. I look at
>> the script and there was "#! python" at first line.
>>
>> I know that this is something that distutils does. I also know that
>> SDK ships its own python interpreter. So what is the right way to
>> approach this problem?
>
> sed it out to right location when doing nativesdk build.
>
>>
>> Regards,
>>
>> --
>> "Do or do not. There is no try"
>>  Yoda Master
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>



-- 
"Do or do not. There is no try"
  Yoda Master


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-16 17:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-16  1:49 distutils break my shebang, what to do? Daniel.
2016-12-16 17:04 ` Khem Raj
2016-12-16 17:29   ` Daniel.

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.