Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-17 Thread Masahiro Yamada
Hi. On Mon, 11 Aug 2014 21:53:47 -0400 Tom Rini wrote: > On Tue, Aug 12, 2014 at 08:03:28AM +0900, Masahiro YAMADA wrote: > > Hi Tom. > > > > > > 2014-08-11 22:12 GMT+09:00 Tom Rini : > > > > > Ug, crap, OK, I had missed that one. Masahiro, how hard would it be to > > > turn multiconfig.py

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-12 Thread Igor Grinberg
On 08/11/14 19:58, Stephen Warren wrote: > On 08/10/2014 02:49 AM, Igor Grinberg wrote: >> >> >> On 08/07/14 20:33, Stephen Warren wrote: >>> On 08/07/2014 10:57 AM, Tom Rini wrote: On Thu, Aug 07, 2014 at 04:17:21PM +0300, Igor Grinberg wrote: > On 08/07/14 13:57, Tom Rini wrote: >>> .. >

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-11 Thread Tom Rini
On Tue, Aug 12, 2014 at 08:03:28AM +0900, Masahiro YAMADA wrote: > Hi Tom. > > > 2014-08-11 22:12 GMT+09:00 Tom Rini : > > > Ug, crap, OK, I had missed that one. Masahiro, how hard would it be to > > turn multiconfig.py into a bash script? Or even handle it within make? > > > I will try a sh

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-11 Thread Masahiro YAMADA
Hi Tom. 2014-08-11 22:12 GMT+09:00 Tom Rini : > Ug, crap, OK, I had missed that one. Masahiro, how hard would it be to > turn multiconfig.py into a bash script? Or even handle it within make? I will try a shell script. (Perhaps some parts are too complicated for a shell script, but I will ta

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-11 Thread Stephen Warren
On 08/10/2014 02:49 AM, Igor Grinberg wrote: On 08/07/14 20:33, Stephen Warren wrote: On 08/07/2014 10:57 AM, Tom Rini wrote: On Thu, Aug 07, 2014 at 04:17:21PM +0300, Igor Grinberg wrote: On 08/07/14 13:57, Tom Rini wrote: .. we just need /usr/bin/env python2 as how we invoke our scripts.

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-11 Thread Tom Rini
On Mon, Aug 11, 2014 at 01:18:40PM +0300, Igor Grinberg wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 08/10/14 14:14, Tom Rini wrote: > > On Sun, Aug 10, 2014 at 11:49:12AM +0300, Igor Grinberg wrote: > >> > >> > >> On 08/07/14 20:33, Stephen Warren wrote: > >>> On 08/07/2014 10:

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-11 Thread Igor Grinberg
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/10/14 14:14, Tom Rini wrote: > On Sun, Aug 10, 2014 at 11:49:12AM +0300, Igor Grinberg wrote: >> >> >> On 08/07/14 20:33, Stephen Warren wrote: >>> On 08/07/2014 10:57 AM, Tom Rini wrote: On Thu, Aug 07, 2014 at 04:17:21PM +0300, Igor Grinbe

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-10 Thread Tom Rini
On Sun, Aug 10, 2014 at 11:49:12AM +0300, Igor Grinberg wrote: > > > On 08/07/14 20:33, Stephen Warren wrote: > > On 08/07/2014 10:57 AM, Tom Rini wrote: > >> On Thu, Aug 07, 2014 at 04:17:21PM +0300, Igor Grinberg wrote: > >>> On 08/07/14 13:57, Tom Rini wrote: > > .. > we just need >

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-10 Thread Igor Grinberg
On 08/07/14 20:33, Stephen Warren wrote: > On 08/07/2014 10:57 AM, Tom Rini wrote: >> On Thu, Aug 07, 2014 at 04:17:21PM +0300, Igor Grinberg wrote: >>> On 08/07/14 13:57, Tom Rini wrote: > .. we just need /usr/bin/env python2 as how we invoke our scripts. >>> >>> This means impose pyth

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-07 Thread Tom Rini
On Thu, Aug 07, 2014 at 11:33:35AM -0600, Stephen Warren wrote: > On 08/07/2014 10:57 AM, Tom Rini wrote: > >On Thu, Aug 07, 2014 at 04:17:21PM +0300, Igor Grinberg wrote: > >>On 08/07/14 13:57, Tom Rini wrote: > .. > >>>we just need > >>>/usr/bin/env python2 as how we invoke our scripts. > >> > >>

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-07 Thread Stephen Warren
On 08/07/2014 10:57 AM, Tom Rini wrote: On Thu, Aug 07, 2014 at 04:17:21PM +0300, Igor Grinberg wrote: On 08/07/14 13:57, Tom Rini wrote: .. we just need /usr/bin/env python2 as how we invoke our scripts. This means impose python version dependency for U-Boot source build? Correct me if you

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-07 Thread Tom Rini
On Thu, Aug 07, 2014 at 04:17:21PM +0300, Igor Grinberg wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 08/07/14 13:57, Tom Rini wrote: > > On Mon, Aug 04, 2014 at 04:17:00PM +0300, Igor Grinberg wrote: > >> Hi Masahiro, > >> > >> On 08/04/14 15:59, Masahiro Yamada wrote: > >>> Hi.

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-07 Thread Igor Grinberg
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/07/14 13:57, Tom Rini wrote: > On Mon, Aug 04, 2014 at 04:17:00PM +0300, Igor Grinberg wrote: >> Hi Masahiro, >> >> On 08/04/14 15:59, Masahiro Yamada wrote: >>> Hi. >>> > It seems that those scripts only work on Python versions 2.6 - 2.

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-07 Thread Tom Rini
On Mon, Aug 04, 2014 at 04:17:00PM +0300, Igor Grinberg wrote: > Hi Masahiro, > > On 08/04/14 15:59, Masahiro Yamada wrote: > > Hi. > > > >> > >>> It seems that those scripts only work on Python versions 2.6 - 2.7? > > > > > > > > I took a quick look and I found Python 3.x is not comatible 2.

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-05 Thread Tom Rini
On Tue, Aug 05, 2014 at 02:05:20AM +, Yan, Miao wrote: > > OK, what host distribution are you using? I'm going to guess RHEL5 (or > > compatible)... If so, yes, I think we need to support that as a host > > platform so > > long as it's still supported by RedHat. > > > It's CentOS 5, which

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-04 Thread Yan, Miao
> > OK, what host distribution are you using? I'm going to guess RHEL5 (or > compatible)... If so, yes, I think we need to support that as a host platform > so > long as it's still supported by RedHat. It's CentOS 5, which still has several years of life time :-( Thanks, Miao

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-04 Thread Tom Rini
On Mon, Aug 04, 2014 at 07:23:12PM +0900, Masahiro Yamada wrote: > It was reported by Miao Yan that the kconfig-related Python scripts > are not working on Python 2.4. OK, what host distribution are you using? I'm going to guess RHEL5 (or compatible)... If so, yes, I think we need to support tha

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-04 Thread Masahiro Yamada
Hi Igor, On Mon, 04 Aug 2014 16:17:00 +0300 Igor Grinberg wrote: > Hi Masahiro, > > On 08/04/14 15:59, Masahiro Yamada wrote: > > Hi. > > > >> > >>> It seems that those scripts only work on Python versions 2.6 - 2.7? > > > > > > > > I took a quick look and I found Python 3.x is not comati

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-04 Thread Igor Grinberg
Hi Masahiro, On 08/04/14 15:59, Masahiro Yamada wrote: > Hi. > >> >>> It seems that those scripts only work on Python versions 2.6 - 2.7? > > > > I took a quick look and I found Python 3.x is not comatible 2.x at all. > > 3.x requires the "print" is called like > print(msg, file=sys.stderr)

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-04 Thread Masahiro Yamada
Hi. > > > It seems that those scripts only work on Python versions 2.6 - 2.7? I took a quick look and I found Python 3.x is not comatible 2.x at all. 3.x requires the "print" is called like print(msg, file=sys.stderr) but it failes in Python 2.7.x. Moreover, "except ... , ..." fails in 3.

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-04 Thread Masahiro Yamada
Hi Igor, On Mon, 04 Aug 2014 14:21:32 +0300 Igor Grinberg wrote: > Hi Masahiro, > > > On 08/04/14 13:23, Masahiro Yamada wrote: > > > > It was reported by Miao Yan that the kconfig-related Python scripts > > are not working on Python 2.4. > > > > Do we have any consensus in terms of Python

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-04 Thread Igor Grinberg
Hi Masahiro, On 08/04/14 13:23, Masahiro Yamada wrote: > > It was reported by Miao Yan that the kconfig-related Python scripts > are not working on Python 2.4. > > Do we have any consensus in terms of Python version requirement? > > This series avoids using "with ... as ..." and "except ... as

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-04 Thread Simon Glass
Hi Masahiro, On 4 August 2014 04:23, Masahiro Yamada wrote: > > It was reported by Miao Yan that the kconfig-related Python scripts > are not working on Python 2.4. > > Do we have any consensus in terms of Python version requirement? > > This series avoids using "with ... as ..." and "except ...

[U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-04 Thread Masahiro Yamada
It was reported by Miao Yan that the kconfig-related Python scripts are not working on Python 2.4. Do we have any consensus in terms of Python version requirement? This series avoids using "with ... as ..." and "except ... as ..." statements. But "with ... as ..." is used everywhere in buildman