discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] python versions


From: Ben Reynwar
Subject: Re: [Discuss-gnuradio] python versions
Date: Mon, 28 Feb 2011 07:33:59 -0700

OK. I'll only test stuff down to 2.5 then.

On Mon, Feb 28, 2011 at 5:14 AM, Tom Rondeau <address@hidden> wrote:
> On Mon, Feb 28, 2011 at 3:37 AM, Josh Blum <address@hidden> wrote:
>>
>> FYI, grc only works with 2.5 and up. Ive only tested up to 2.7
>>
>> -Josh
>
> Yes, Josh is right, I just looked to refresh my memory. GRC makes a check
> for Python >= 2.5. The rest of GNU Radio doesn't check for a specific
> version, just that certain properties are met and modules are available (ala
> config/gr_python.m4).
> Tom
>
>>
>> On 02/27/2011 09:43 PM, Ben Reynwar wrote:
>> > I just tested the next branch with 2.4 and the only incompatibility
>> > was  a "with" statement in gr_xmlrunner.py.
>> > The "with" statement was introduced in 2.5.
>> >
>> > Once that was removed the "make check" ran fine.
>> >
>> > The replacement for the "with" statement was:
>> >
>> > fss = _fake_std_streams()
>> > fss.__enter__()
>> > try:
>> >     test(result)
>> >     try:
>> >         out_s = sys.stdout.getvalue()
>> >     except AttributeError:
>> >         out_s = ""
>> >     try:
>> >         err_s = sys.stderr.getvalue()
>> >     except AttributeError:
>> >         err_s = ""
>> > finally:
>> >     fss.__exit__(None, None, None)
>> >
>> > On Wed, Feb 23, 2011 at 6:20 PM, Tom Rondeau <address@hidden>
>> > wrote:
>> >> On Wed, Feb 23, 2011 at 1:28 PM, Ben Reynwar <address@hidden> wrote:
>> >>> What are the oldest and newest versions of python that gnuradio should
>> >>> work with?
>> >>>
>> >>> That way I can test stuff using those two versions.
>> >>
>> >>
>> >> Python 2.4 is the oldest that I _know_ will work (and I don't think,
>> >> but haven't tried, 2.3), and I've used it with 2.7. It will not work
>> >> with 3.+.
>> >>
>> >> Tom
>> >>
>> >
>> > _______________________________________________
>> > Discuss-gnuradio mailing list
>> > address@hidden
>> > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]