[yocto] Supporting upcoming distribution releases

NiQingliang niqingliang at insigma.com.cn
Tue Jul 12 19:19:53 PDT 2011


/usr/bin/env python2 
/usr/bin/env python2.7
both of them are ok for archlinux, but I don't know which is ok for
other distributions, maybe both are not.

maybe we can make a shell script to detect the python version, and make
a symbollink to the right one in some directory, and add the directory
into env var "PATH".


On Wed, 2011-07-13 at 10:08 +0800, Joshua Lock wrote:
> On Wed, 2011-07-13 at 09:15 +0800, NiQingliang wrote:
> > I think Archlinux is the preferred choice.-_-
> > Just joke.
> >
> > I doubt why the bitbake need python2.x but just use /bin/env python. I
> > think If it need a specific version python, it should write it in the
> > shebang. e.g. /bin/env python2.6
> 
> I looked at this but not enough of the distributions we care to support
> have a python2.6 binary:
> 
> joshual at scimitar:~
> $ /usr/bin/env python2
> Python 2.7.1 (r271:86832, Apr 12 2011, 16:16:18)
> [GCC 4.6.0 20110331 (Red Hat 4.6.0-2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
> joshual at scimitar:~
> $ /usr/bin/env python2.6
> /usr/bin/env: python2.6: No such file or directory
> 
> I'd love to support Arch more thoroughly but they aren't making it easy
> for us ;-)
> 
> Cheers,
> Joshua
> --
> Joshua Lock
>         Yocto Project "Johannes factotum"
>         Intel Open Source Technology Centre
> 
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-- 
倪庆亮
TEL:    13588371863
E-MAIL: niqingliang at insigma.com.cn
BLOG:   http://niqingliang2003.wordpress.com





More information about the yocto mailing list