[oe] python 2.6 warning
Richard Purdie
rpurdie at rpsys.net
Mon May 11 22:37:38 UTC 2009
On Mon, 2009-05-11 at 16:19 +0200, Marcin Juszkiewicz wrote:
> Dnia poniedziałek, 11 maja 2009 o 11:22:56 Robert Schuster napisał(a):
> > Hi all,
> > those who are using bitbake with Python 2.6 (e.g. Ubuntu 09.04,
> > Debian sid) will notice this warning:
> >
> > /home/rschus/oe/bitbake/lib/bb/COW.py:29: DeprecationWarning: the
> > sets module is deprecated
> > import types, sets
> >
> > Is anyone from OE in the know how to fix that properly? I know its
> > only a warning but imagine an OE newbie reading this .... I would
> > like to fix it myself but even after years of contributing to OE my
> > Pyhton skills are severely limited. :|
>
> BitBake trunk has it fixed by me. Backporting to 1.8.x and to
> stable/2009 are on my todolist. And yes - it works fine with Python 2.5
> and even should with Python 2.4 which is minimal required version
> (should works with 2.3 but we do not support it).
It won't work with 2.3 but we don't care about 2.3, it will work with
2.4 onwards. I have no idea why we were using long deprecated stuff :/.
I've backported it to bitbake 1.8 and it seems to work along with
merging a number of fixes lurking in Poky.
I'm also intending to merge the virtual class extension stuff soon
unless anyone has a major objection (none were raised previously when I
proposed this).
Cheers,
Richard
More information about the Openembedded-devel
mailing list