Re: [OE-core] [PATCH 2/2] python-six: put python2/3 variant together

2019-05-22 Thread Alejandro Hernandez


On 5/22/2019 7:01 AM, Tim Orling wrote:



On Wed, May 22, 2019 at 4:27 AM Alexander Kanavin 
mailto:alex.kana...@gmail.com>> wrote:


On Wed, 22 May 2019 at 13:05, mailto:richard.pur...@linuxfoundation.org>> wrote:

> I don't think we need to switch our default, just be able to
build say
> oe-core without python/python2 in HOSTTOOLS and without needing
python
> 2.7 in OE-Core either.
>
> > Its good that project is taking lead here but we might leave many
> > users behind.
>
> I suspect python2 will end up in a layer of its down which I'm fine
> with, dependencies can then be clearly seen.

For what it's worth, Fedora is getting serious about Python 2 removal,
and they have a plan for it:
https://fedoraproject.org/wiki/Changes/RetirePython2

"All packages in Fedora that need Python 2 to run will be removed from
Fedora 32 regardless of their dependencies. All packages in Fedora
that need Python 2 to build will be removed from Fedora 32 regardless
of their dependencies. "



We have discussed moving meta-python to its own repository (not under 
meta-openembedded). As part of that move, I am proposing the existing 
python2 recipes move to a separate (deprecated) layer, as RP mentioned 
earlier. Then meta-python will become python3 only. We will also move 
recipetool/devtool to provide python3 (only) support. People that need 
python2 will very soon have to live with older stable branches. This 
should not be a surprise.


We also need to do whatever we can with upstream projects that are not 
feeling an urgency to move to python3. They should likewise not be 
surprised at the need to switch.



I would agree with this as well.


Cheers,

Alejandro





Alex
-- 
___

Openembedded-core mailing list
Openembedded-core@lists.openembedded.org

http://lists.openembedded.org/mailman/listinfo/openembedded-core


-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] python-six: put python2/3 variant together

2019-05-22 Thread Tim Orling
On Wed, May 22, 2019 at 4:27 AM Alexander Kanavin 
wrote:

> On Wed, 22 May 2019 at 13:05,  wrote:
>
> > I don't think we need to switch our default, just be able to build say
> > oe-core without python/python2 in HOSTTOOLS and without needing python
> > 2.7 in OE-Core either.
> >
> > > Its good that project is taking lead here but we might leave many
> > > users behind.
> >
> > I suspect python2 will end up in a layer of its down which I'm fine
> > with, dependencies can then be clearly seen.
>
> For what it's worth, Fedora is getting serious about Python 2 removal,
> and they have a plan for it:
> https://fedoraproject.org/wiki/Changes/RetirePython2
>
> "All packages in Fedora that need Python 2 to run will be removed from
> Fedora 32 regardless of their dependencies. All packages in Fedora
> that need Python 2 to build will be removed from Fedora 32 regardless
> of their dependencies. "
>


We have discussed moving meta-python to its own repository (not under
meta-openembedded). As part of that move, I am proposing the existing
python2 recipes move to a separate (deprecated) layer, as RP mentioned
earlier. Then meta-python will become python3 only. We will also move
recipetool/devtool to provide python3 (only) support. People that need
python2 will very soon have to live with older stable branches. This should
not be a surprise.

We also need to do whatever we can with upstream projects that are not
feeling an urgency to move to python3. They should likewise not be
surprised at the need to switch.


> Alex
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] python-six: put python2/3 variant together

2019-05-22 Thread Alexander Kanavin
On Wed, 22 May 2019 at 13:05,  wrote:

> I don't think we need to switch our default, just be able to build say
> oe-core without python/python2 in HOSTTOOLS and without needing python
> 2.7 in OE-Core either.
>
> > Its good that project is taking lead here but we might leave many
> > users behind.
>
> I suspect python2 will end up in a layer of its down which I'm fine
> with, dependencies can then be clearly seen.

For what it's worth, Fedora is getting serious about Python 2 removal,
and they have a plan for it:
https://fedoraproject.org/wiki/Changes/RetirePython2

"All packages in Fedora that need Python 2 to run will be removed from
Fedora 32 regardless of their dependencies. All packages in Fedora
that need Python 2 to build will be removed from Fedora 32 regardless
of their dependencies. "

Alex
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] python-six: put python2/3 variant together

2019-05-22 Thread richard . purdie
On Tue, 2019-05-21 at 18:49 -0700, Khem Raj wrote:
> On Tue, May 21, 2019 at 2:44 PM 
> wrote:
> > On Tue, 2019-05-21 at 22:59 +0200, Andreas Müller wrote:
> > > On Tue, May 21, 2019 at 8:38 PM <
> > > richard.pur...@linuxfoundation.org>
> > > wrote:
> > > > > No sorry mozjs uses old crap in their configurations scripts
> > > > > nobody
> > > > > else does (python which) and ask for python2 explicitly.
> > > > 
> > > > I've been giving this a bit more thought and its our intent to
> > > > try
> > > > and
> > > > remove python2 from OE-Core entirely so adding py2 modules back
> > > > seems
> > > > like a backwards step.
> > > > 
> > > > I think this will therefore need to go to one of the other
> > > > layers,
> > > > painful as that might be from an include perspective.
> > > Yeah a new burden out of thin air is born. You know what I do:
> > > Create
> > > my own layers and am happy as I am with my other layers.
> > > 
> > > Bye
> > 
> > Its not "out of thin air". It was discussed over two years ago when
> > we
> > started a plan of trying to remove python2 dependencies:
> > 
> > http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=1fc2c9315faf65ea05fecf81450dd40b9a330435
> > 
> > This was in line with what upstream python recommended. Upstream
> > python
> > has made a clear statement on this too:
> > 
> > https://python3statement.org/
> > 
> > For a release that will ship 3 months before that deadline, it
> > seems
> > unreasonable to add this back to oe-core, no?
> > 
> 
> the EOL is expected to be Jan 2020, lets see what happens but I think
> it would be good for us
> to first switch default python to be python3 and then remove python2
> completely IMO, I do not
> see any major distro planning to drop py2 at the stroke of it going
> EOL as of now, situation might
> change in coming months but many of them haven't even switched
> defaults.

I don't think we need to switch our default, just be able to build say
oe-core without python/python2 in HOSTTOOLS and without needing python
2.7 in OE-Core either. 

> Its good that project is taking lead here but we might leave many
> users behind.

I suspect python2 will end up in a layer of its down which I'm fine
with, dependencies can then be clearly seen.

Cheers,

Richard

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] python-six: put python2/3 variant together

2019-05-21 Thread Philip Balister
On 05/21/2019 12:41 PM, Richard Purdie wrote:
> On Tue, 2019-05-21 at 11:00 +0200, Andreas Müller wrote:
>> Upcoming 60.2.3 mozjs (meta-oe) requires python(2)-six-native for its
>> configuration. Currently python(2)-six lives in meta-python and it
>> could be
>> moved to mozjs's home meta-oe but that would be just further clutter.
>>
>> Once applied here patch to meta-python will be send.
>>
>> Signed-off-by: Andreas Müller 
>> ---
>>  meta/recipes-devtools/python/python-six_1.12.0.bb | 2 ++
>>  1 file changed, 2 insertions(+)
>>  create mode 100644 meta/recipes-devtools/python/python-six_1.12.0.bb
>>
>> diff --git a/meta/recipes-devtools/python/python-six_1.12.0.bb
>> b/meta/recipes-devtools/python/python-six_1.12.0.bb
>> new file mode 100644
>> index 00..9075745d74
>> --- /dev/null
>> +++ b/meta/recipes-devtools/python/python-six_1.12.0.bb
>> @@ -0,0 +1,2 @@
>> +inherit pypi setuptools
>> +require python-six.inc
> 
> Can it not use python3? Python2 is rapidly running out of time at this
> point and I'd not expect new dependencies on python2 to be appearing...

Also, I suspect plenty of other things use python-six and expect to get
it from meta-python, not meta-oe.

We need to be driving everything we can to python3.

Philip

> 
> Cheers,
> 
> Richard
> 
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] python-six: put python2/3 variant together

2019-05-21 Thread Khem Raj
On Tue, May 21, 2019 at 2:44 PM  wrote:
>
> On Tue, 2019-05-21 at 22:59 +0200, Andreas Müller wrote:
> > On Tue, May 21, 2019 at 8:38 PM 
> > wrote:
> > > > No sorry mozjs uses old crap in their configurations scripts
> > > > nobody
> > > > else does (python which) and ask for python2 explicitly.
> > >
> > > I've been giving this a bit more thought and its our intent to try
> > > and
> > > remove python2 from OE-Core entirely so adding py2 modules back
> > > seems
> > > like a backwards step.
> > >
> > > I think this will therefore need to go to one of the other layers,
> > > painful as that might be from an include perspective.
> > Yeah a new burden out of thin air is born. You know what I do: Create
> > my own layers and am happy as I am with my other layers.
> >
> > Bye
>
> Its not "out of thin air". It was discussed over two years ago when we
> started a plan of trying to remove python2 dependencies:
>
> http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=1fc2c9315faf65ea05fecf81450dd40b9a330435
>
> This was in line with what upstream python recommended. Upstream python
> has made a clear statement on this too:
>
> https://python3statement.org/
>
> For a release that will ship 3 months before that deadline, it seems
> unreasonable to add this back to oe-core, no?
>

the EOL is expected to be Jan 2020, lets see what happens but I think
it would be good for us
to first switch default python to be python3 and then remove python2
completely IMO, I do not
see any major distro planning to drop py2 at the stroke of it going
EOL as of now, situation might
change in coming months but many of them haven't even switched defaults.

Its good that project is taking lead here but we might leave many users behind.

> Cheers,
>
> Richard
>
>
>
>
>
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] python-six: put python2/3 variant together

2019-05-21 Thread richard . purdie
On Tue, 2019-05-21 at 22:59 +0200, Andreas Müller wrote:
> On Tue, May 21, 2019 at 8:38 PM 
> wrote:
> > > No sorry mozjs uses old crap in their configurations scripts
> > > nobody
> > > else does (python which) and ask for python2 explicitly.
> > 
> > I've been giving this a bit more thought and its our intent to try
> > and
> > remove python2 from OE-Core entirely so adding py2 modules back
> > seems
> > like a backwards step.
> > 
> > I think this will therefore need to go to one of the other layers,
> > painful as that might be from an include perspective.
> Yeah a new burden out of thin air is born. You know what I do: Create
> my own layers and am happy as I am with my other layers.
> 
> Bye

Its not "out of thin air". It was discussed over two years ago when we
started a plan of trying to remove python2 dependencies:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=1fc2c9315faf65ea05fecf81450dd40b9a330435

This was in line with what upstream python recommended. Upstream python
has made a clear statement on this too:

https://python3statement.org/

For a release that will ship 3 months before that deadline, it seems
unreasonable to add this back to oe-core, no?

Cheers,

Richard





-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] python-six: put python2/3 variant together

2019-05-21 Thread Andreas Müller
On Tue, May 21, 2019 at 8:38 PM  wrote:
> > No sorry mozjs uses old crap in their configurations scripts nobody
> > else does (python which) and ask for python2 explicitly.
>
> I've been giving this a bit more thought and its our intent to try and
> remove python2 from OE-Core entirely so adding py2 modules back seems
> like a backwards step.
>
> I think this will therefore need to go to one of the other layers,
> painful as that might be from an include perspective.
Yeah a new burden out of thin air is born. You know what I do: Create
my own layers and am happy as I am with my other layers.

Bye

Andreas
>
> Upstream are only going to keep py2 compatibility to the end of the
> year, if that so the recipes will have to fork sooner or later anyway.
>
> Cheers,
>
> Richard
>
>
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] python-six: put python2/3 variant together

2019-05-21 Thread richard . purdie
On Tue, 2019-05-21 at 20:00 +0200, Andreas Müller wrote:
> On Tue, May 21, 2019 at 6:41 PM Richard Purdie
>  wrote:
> > On Tue, 2019-05-21 at 11:00 +0200, Andreas Müller wrote:
> > > Upcoming 60.2.3 mozjs (meta-oe) requires python(2)-six-native for
> > > its
> > > configuration. Currently python(2)-six lives in meta-python and
> > > it
> > > could be
> > > moved to mozjs's home meta-oe but that would be just further
> > > clutter.
> > > 
> > > Once applied here patch to meta-python will be send.
> > > 
> > > Signed-off-by: Andreas Müller 
> > > ---
> > >  meta/recipes-devtools/python/python-six_1.12.0.bb | 2 ++
> > >  1 file changed, 2 insertions(+)
> > >  create mode 100644 meta/recipes-devtools/python/python-
> > > six_1.12.0.bb
> > > 
> > > diff --git a/meta/recipes-devtools/python/python-six_1.12.0.bb
> > > b/meta/recipes-devtools/python/python-six_1.12.0.bb
> > > new file mode 100644
> > > index 00..9075745d74
> > > --- /dev/null
> > > +++ b/meta/recipes-devtools/python/python-six_1.12.0.bb
> > > @@ -0,0 +1,2 @@
> > > +inherit pypi setuptools
> > > +require python-six.inc
> > 
> > Can it not use python3? Python2 is rapidly running out of time at
> > this
> > point and I'd not expect new dependencies on python2 to be
> > appearing...
> > 
> > Cheers,
> > 
> No sorry mozjs uses old crap in their configurations scripts nobody
> else does (python which) and ask for python2 explicitly.

I've been giving this a bit more thought and its our intent to try and
remove python2 from OE-Core entirely so adding py2 modules back seems
like a backwards step.

I think this will therefore need to go to one of the other layers,
painful as that might be from an include perspective.

Upstream are only going to keep py2 compatibility to the end of the
year, if that so the recipes will have to fork sooner or later anyway.

Cheers,

Richard



-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] python-six: put python2/3 variant together

2019-05-21 Thread Andreas Müller
On Tue, May 21, 2019 at 6:41 PM Richard Purdie
 wrote:
>
> On Tue, 2019-05-21 at 11:00 +0200, Andreas Müller wrote:
> > Upcoming 60.2.3 mozjs (meta-oe) requires python(2)-six-native for its
> > configuration. Currently python(2)-six lives in meta-python and it
> > could be
> > moved to mozjs's home meta-oe but that would be just further clutter.
> >
> > Once applied here patch to meta-python will be send.
> >
> > Signed-off-by: Andreas Müller 
> > ---
> >  meta/recipes-devtools/python/python-six_1.12.0.bb | 2 ++
> >  1 file changed, 2 insertions(+)
> >  create mode 100644 meta/recipes-devtools/python/python-six_1.12.0.bb
> >
> > diff --git a/meta/recipes-devtools/python/python-six_1.12.0.bb
> > b/meta/recipes-devtools/python/python-six_1.12.0.bb
> > new file mode 100644
> > index 00..9075745d74
> > --- /dev/null
> > +++ b/meta/recipes-devtools/python/python-six_1.12.0.bb
> > @@ -0,0 +1,2 @@
> > +inherit pypi setuptools
> > +require python-six.inc
>
> Can it not use python3? Python2 is rapidly running out of time at this
> point and I'd not expect new dependencies on python2 to be appearing...
>
> Cheers,
>
No sorry mozjs uses old crap in their configurations scripts nobody
else does (python which) and ask for python2 explicitly.

Andreas
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] python-six: put python2/3 variant together

2019-05-21 Thread Richard Purdie
On Tue, 2019-05-21 at 11:00 +0200, Andreas Müller wrote:
> Upcoming 60.2.3 mozjs (meta-oe) requires python(2)-six-native for its
> configuration. Currently python(2)-six lives in meta-python and it
> could be
> moved to mozjs's home meta-oe but that would be just further clutter.
> 
> Once applied here patch to meta-python will be send.
> 
> Signed-off-by: Andreas Müller 
> ---
>  meta/recipes-devtools/python/python-six_1.12.0.bb | 2 ++
>  1 file changed, 2 insertions(+)
>  create mode 100644 meta/recipes-devtools/python/python-six_1.12.0.bb
> 
> diff --git a/meta/recipes-devtools/python/python-six_1.12.0.bb
> b/meta/recipes-devtools/python/python-six_1.12.0.bb
> new file mode 100644
> index 00..9075745d74
> --- /dev/null
> +++ b/meta/recipes-devtools/python/python-six_1.12.0.bb
> @@ -0,0 +1,2 @@
> +inherit pypi setuptools
> +require python-six.inc

Can it not use python3? Python2 is rapidly running out of time at this
point and I'd not expect new dependencies on python2 to be appearing...

Cheers,

Richard

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 2/2] python-six: put python2/3 variant together

2019-05-21 Thread Andreas Müller
Upcoming 60.2.3 mozjs (meta-oe) requires python(2)-six-native for its
configuration. Currently python(2)-six lives in meta-python and it could be
moved to mozjs's home meta-oe but that would be just further clutter.

Once applied here patch to meta-python will be send.

Signed-off-by: Andreas Müller 
---
 meta/recipes-devtools/python/python-six_1.12.0.bb | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python-six_1.12.0.bb

diff --git a/meta/recipes-devtools/python/python-six_1.12.0.bb 
b/meta/recipes-devtools/python/python-six_1.12.0.bb
new file mode 100644
index 00..9075745d74
--- /dev/null
+++ b/meta/recipes-devtools/python/python-six_1.12.0.bb
@@ -0,0 +1,2 @@
+inherit pypi setuptools
+require python-six.inc
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core