* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 17:09 ` Dirkjan Ochtman
@ 2009-09-19 17:21 ` Dale
2009-09-19 17:28 ` Olivier Crête
2009-09-19 17:33 ` [gentoo-dev] " Nikos Chantziaras
2009-09-19 17:26 ` [gentoo-dev] " Alex Legler
` (2 subsequent siblings)
3 siblings, 2 replies; 60+ messages in thread
From: Dale @ 2009-09-19 17:21 UTC (permalink / raw
To: gentoo-dev
Dirkjan Ochtman wrote:
> On Sat, Sep 19, 2009 at 19:06, Alex Legler <a3li@gentoo.org> wrote:
>
>> What is the point of stabilizing it if users shouldn't use it as main
>> interpreter? Just leave it in ~arch until it can be safely used.
>>
>
> Making it easily available so that people can port stuff, so that the
> entire world may be able to use it as their main interpreter sooner?
>
> Seriously, it's out there, there's no reason to keep it from stable.
> Just prevent people from making python invoke 3.x and everything will
> be fine.
>
> Cheers,
>
> Dirkjan
>
>
>
Isn't ~arch supposed to be for testing? Isn't that the point of having
~arch?
Dale
:-) :-)
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 17:21 ` Dale
@ 2009-09-19 17:28 ` Olivier Crête
2009-09-19 22:32 ` Dale
2009-09-20 11:18 ` Richard Freeman
2009-09-19 17:33 ` [gentoo-dev] " Nikos Chantziaras
1 sibling, 2 replies; 60+ messages in thread
From: Olivier Crête @ 2009-09-19 17:28 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 840 bytes --]
On Sat, 2009-09-19 at 12:21 -0500, Dale wrote:
> Dirkjan Ochtman wrote:
> > On Sat, Sep 19, 2009 at 19:06, Alex Legler <a3li@gentoo.org> wrote:
> >
> >> What is the point of stabilizing it if users shouldn't use it as main
> >> interpreter? Just leave it in ~arch until it can be safely used.
> >>
> >
> > Making it easily available so that people can port stuff, so that the
> > entire world may be able to use it as their main interpreter sooner?
> >
> > Seriously, it's out there, there's no reason to keep it from stable.
> > Just prevent people from making python invoke 3.x and everything will
> > be fine.
>
> Isn't ~arch supposed to be for testing? Isn't that the point of having
> ~arch?
~arch is for testing ebuilds, not the upstream package
--
Olivier Crête
tester@gentoo.org
Gentoo Developer
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 17:28 ` Olivier Crête
@ 2009-09-19 22:32 ` Dale
2009-09-19 22:41 ` Dawid Węgliński
2009-09-20 11:18 ` Richard Freeman
1 sibling, 1 reply; 60+ messages in thread
From: Dale @ 2009-09-19 22:32 UTC (permalink / raw
To: gentoo-dev
Olivier Crête wrote:
> On Sat, 2009-09-19 at 12:21 -0500, Dale wrote:
>
>> Dirkjan Ochtman wrote:
>>
>>> On Sat, Sep 19, 2009 at 19:06, Alex Legler <a3li@gentoo.org> wrote:
>>>
>>>
>>>> What is the point of stabilizing it if users shouldn't use it as main
>>>> interpreter? Just leave it in ~arch until it can be safely used.
>>>>
>>>>
>>> Making it easily available so that people can port stuff, so that the
>>> entire world may be able to use it as their main interpreter sooner?
>>>
>>> Seriously, it's out there, there's no reason to keep it from stable.
>>> Just prevent people from making python invoke 3.x and everything will
>>> be fine.
>>>
>> Isn't ~arch supposed to be for testing? Isn't that the point of having
>> ~arch?
>>
>
> ~arch is for testing ebuilds, not the upstream package
>
>
So it would be OK to mark something "stable" even tho portage itself
doesn't work with it? Sorry, this makes no sense to me. I run stable
for the most part and having a package that portage depends on that is
not stable just sounds a little like putting the cart before the horse.
See some of the other replies as to why this is a not so good idea.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 22:32 ` Dale
@ 2009-09-19 22:41 ` Dawid Węgliński
2009-09-20 14:53 ` Jesús Guerrero
2009-09-20 22:15 ` Mark Loeser
0 siblings, 2 replies; 60+ messages in thread
From: Dawid Węgliński @ 2009-09-19 22:41 UTC (permalink / raw
To: gentoo-dev; +Cc: Dale
On Sunday 20 of September 2009 00:32:28 Dale wrote:
> >
> > ~arch is for testing ebuilds, not the upstream package
>
> So it would be OK to mark something "stable" even tho portage itself
> doesn't work with it? Sorry, this makes no sense to me. I run stable
> for the most part and having a package that portage depends on that is
> not stable just sounds a little like putting the cart before the horse.
>
> See some of the other replies as to why this is a not so good idea.
>
> Dale
>
> :-) :-)
You mix it up. Portage works with python 3.1. If an user switches to python
3.1 as the main interpreter, it's possible that his own scripts won't work.
Marking it stable sometine in november give's some time to ebuilds
maintainers to fix their python based apps just like it's done with gcc
stabilization.
So marking python 3.1 stable and telling users "port your own apps/scripts to
current python" sounds good to me.
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 22:41 ` Dawid Węgliński
@ 2009-09-20 14:53 ` Jesús Guerrero
2009-09-20 15:16 ` Dale
2009-09-20 15:24 ` Arfrever Frehtes Taifersar Arahesis
2009-09-20 22:15 ` Mark Loeser
1 sibling, 2 replies; 60+ messages in thread
From: Jesús Guerrero @ 2009-09-20 14:53 UTC (permalink / raw
To: gentoo-dev
On Sun, 20 Sep 2009 00:41:32 +0200, Dawid Węgliński <cla@gentoo.org>
wrote:
> On Sunday 20 of September 2009 00:32:28 Dale wrote:
>> >
>> > ~arch is for testing ebuilds, not the upstream package
>>
>> So it would be OK to mark something "stable" even tho portage itself
>> doesn't work with it? Sorry, this makes no sense to me. I run stable
>> for the most part and having a package that portage depends on that is
>> not stable just sounds a little like putting the cart before the horse.
>>
>> See some of the other replies as to why this is a not so good idea.
>>
>> Dale
>>
>> :-) :-)
>
> You mix it up. Portage works with python 3.1. If an user switches to
> python
> 3.1 as the main interpreter, it's possible that his own scripts won't
> work.
Yes?
# eselect python set 2
# emerge -s foo
File "/usr/bin/emerge", line 41
except PermissionDenied, e:
^
SyntaxError: invalid syntax
Ummm, yes, it works *beautifully*, you see. Nothing else to add.
> Marking it stable sometine in november give's some time to ebuilds
> maintainers to fix their python based apps just like it's done with gcc
> stabilization.
That's not the usual case. In Gentoo we have a serious policy of not
marking as stable things until it has passed one month without any serious
bug report about it. And you are proposing to break this rule for a core
piece of the OS, right, wonderful.
Instead I say, first fix the stuff, and then we can start planning the
switch to 3.1
--
Jesús Guerrero
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 14:53 ` Jesús Guerrero
@ 2009-09-20 15:16 ` Dale
2009-09-20 15:24 ` Arfrever Frehtes Taifersar Arahesis
1 sibling, 0 replies; 60+ messages in thread
From: Dale @ 2009-09-20 15:16 UTC (permalink / raw
To: gentoo-dev
Jesús Guerrero wrote:
> On Sun, 20 Sep 2009 00:41:32 +0200, Dawid Węgliński <cla@gentoo.org>
> wrote:
>
>> On Sunday 20 of September 2009 00:32:28 Dale wrote:
>>
>>>> ~arch is for testing ebuilds, not the upstream package
>>>>
>>> So it would be OK to mark something "stable" even tho portage itself
>>> doesn't work with it? Sorry, this makes no sense to me. I run stable
>>> for the most part and having a package that portage depends on that is
>>> not stable just sounds a little like putting the cart before the horse.
>>>
>>> See some of the other replies as to why this is a not so good idea.
>>>
>>> Dale
>>>
>>> :-) :-)
>>>
>> You mix it up. Portage works with python 3.1. If an user switches to
>> python
>> 3.1 as the main interpreter, it's possible that his own scripts won't
>> work.
>>
>
> Yes?
>
> # eselect python set 2
> # emerge -s foo
> File "/usr/bin/emerge", line 41
> except PermissionDenied, e:
> ^
> SyntaxError: invalid syntax
>
>
> Ummm, yes, it works *beautifully*, you see. Nothing else to add.
>
>
>> Marking it stable sometine in november give's some time to ebuilds
>> maintainers to fix their python based apps just like it's done with gcc
>> stabilization.
>>
>
> That's not the usual case. In Gentoo we have a serious policy of not
> marking as stable things until it has passed one month without any serious
> bug report about it. And you are proposing to break this rule for a core
> piece of the OS, right, wonderful.
>
> Instead I say, first fix the stuff, and then we can start planning the
> switch to 3.1
>
>
My point exactly. No package, especially a core package that portage
depends on, should just be thrown into the tree and just assume that it
will work for everyone else.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 14:53 ` Jesús Guerrero
2009-09-20 15:16 ` Dale
@ 2009-09-20 15:24 ` Arfrever Frehtes Taifersar Arahesis
2009-09-20 15:28 ` Jesús Guerrero
2009-09-20 17:30 ` Nirbheek Chauhan
1 sibling, 2 replies; 60+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis @ 2009-09-20 15:24 UTC (permalink / raw
To: Gentoo Development
[-- Attachment #1: Type: Text/Plain, Size: 1958 bytes --]
2009-09-20 16:53:37 Jesús Guerrero napisał(a):
> On Sun, 20 Sep 2009 00:41:32 +0200, Dawid Węgliński <cla@gentoo.org>
> wrote:
> > On Sunday 20 of September 2009 00:32:28 Dale wrote:
> >> >
> >> > ~arch is for testing ebuilds, not the upstream package
> >>
> >> So it would be OK to mark something "stable" even tho portage itself
> >> doesn't work with it? Sorry, this makes no sense to me. I run stable
> >> for the most part and having a package that portage depends on that is
> >> not stable just sounds a little like putting the cart before the horse.
> >>
> >> See some of the other replies as to why this is a not so good idea.
> >>
> >> Dale
> >>
> >> :-) :-)
> >
> > You mix it up. Portage works with python 3.1. If an user switches to
> > python
> > 3.1 as the main interpreter, it's possible that his own scripts won't
> > work.
>
> Yes?
>
> # eselect python set 2
> # emerge -s foo
> File "/usr/bin/emerge", line 41
> except PermissionDenied, e:
> ^
> SyntaxError: invalid syntax
>
>
> Ummm, yes, it works *beautifully*, you see. Nothing else to add.
I have fixed it today :) .
http://sources.gentoo.org/viewcvs.py/portage?rev=14289&view=rev
> > Marking it stable sometine in november give's some time to ebuilds
> > maintainers to fix their python based apps just like it's done with gcc
> > stabilization.
>
> That's not the usual case. In Gentoo we have a serious policy of not
> marking as stable things until it has passed one month without any serious
> bug report about it.
There wasn't any serious bug report about Python 3.1.
IIRC the only problem was a (already fixed) build failure caused by non-UTF-8
characters in header of Berkeley DB.
Stabilization of Python 3.1.1-r1 is planned over 1 month after its addition to
the tree and about 3 months after addition of 3.1 slot to the tree.
--
Arfrever Frehtes Taifersar Arahesis
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 15:24 ` Arfrever Frehtes Taifersar Arahesis
@ 2009-09-20 15:28 ` Jesús Guerrero
2009-09-20 17:30 ` Nirbheek Chauhan
1 sibling, 0 replies; 60+ messages in thread
From: Jesús Guerrero @ 2009-09-20 15:28 UTC (permalink / raw
To: gentoo-dev
On Sun, 20 Sep 2009 17:24:53 +0200, Arfrever Frehtes Taifersar Arahesis
<Arfrever@gentoo.org> wrote:
> 2009-09-20 16:53:37 Jesús Guerrero napisał(a):
>> On Sun, 20 Sep 2009 00:41:32 +0200, Dawid Węgliński <cla@gentoo.org>
>> wrote:
>> > On Sunday 20 of September 2009 00:32:28 Dale wrote:
>> >> >
>> >> > ~arch is for testing ebuilds, not the upstream package
>> >>
>> >> So it would be OK to mark something "stable" even tho portage itself
>> >> doesn't work with it? Sorry, this makes no sense to me. I run
stable
>> >> for the most part and having a package that portage depends on that
is
>> >> not stable just sounds a little like putting the cart before the
>> >> horse.
>> >>
>> >> See some of the other replies as to why this is a not so good idea.
>> >>
>> >> Dale
>> >>
>> >> :-) :-)
>> >
>> > You mix it up. Portage works with python 3.1. If an user switches to
>> > python
>> > 3.1 as the main interpreter, it's possible that his own scripts won't
>> > work.
>>
>> Yes?
>>
>> # eselect python set 2
>> # emerge -s foo
>> File "/usr/bin/emerge", line 41
>> except PermissionDenied, e:
>> ^
>> SyntaxError: invalid syntax
>>
>>
>> Ummm, yes, it works *beautifully*, you see. Nothing else to add.
>
> I have fixed it today :) .
> http://sources.gentoo.org/viewcvs.py/portage?rev=14289&view=rev
>
>> > Marking it stable sometine in november give's some time to ebuilds
>> > maintainers to fix their python based apps just like it's done with
>> > gcc
>> > stabilization.
>>
>> That's not the usual case. In Gentoo we have a serious policy of not
>> marking as stable things until it has passed one month without any
>> serious
>> bug report about it.
>
> There wasn't any serious bug report about Python 3.1.
> IIRC the only problem was a (already fixed) build failure caused by
> non-UTF-8
> characters in header of Berkeley DB.
> Stabilization of Python 3.1.1-r1 is planned over 1 month after its
> addition to
> the tree and about 3 months after addition of 3.1 slot to the tree.
That sounds better. :)
All users want is something that works out of the box. As long as that's
true I don't have a problem with the change. I myself live in ~arch for my
desktop machine, I am just concerned about the average user.
--
Jesús Guerrero
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 15:24 ` Arfrever Frehtes Taifersar Arahesis
2009-09-20 15:28 ` Jesús Guerrero
@ 2009-09-20 17:30 ` Nirbheek Chauhan
2009-09-20 17:57 ` Arfrever Frehtes Taifersar Arahesis
1 sibling, 1 reply; 60+ messages in thread
From: Nirbheek Chauhan @ 2009-09-20 17:30 UTC (permalink / raw
To: gentoo-dev
On Sun, Sep 20, 2009 at 8:54 PM, Arfrever Frehtes Taifersar Arahesis
<Arfrever@gentoo.org> wrote:
> 2009-09-20 16:53:37 Jesús Guerrero napisał(a):
>> # eselect python set 2
>> # emerge -s foo
>> File "/usr/bin/emerge", line 41
>> except PermissionDenied, e:
>> ^
>> SyntaxError: invalid syntax
>>
>>
>> Ummm, yes, it works *beautifully*, you see. Nothing else to add.
>
> I have fixed it today :) .
> http://sources.gentoo.org/viewcvs.py/portage?rev=14289&view=rev
>
This is silly. portage itself was broken with python-3.1 and you want
to stabilize it? Why do you want to make it trivial for people to chop
off their feet by mistake (in panic or frustration)?
Actually, how did you make portage work with both 2.x and 3.x at the
same time? I would be very interested to know this since afaik no
useful program can work with both python-3 and python-2 with the same
code.
--
~Nirbheek Chauhan
GNOME+Mozilla Team, Gentoo
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 17:30 ` Nirbheek Chauhan
@ 2009-09-20 17:57 ` Arfrever Frehtes Taifersar Arahesis
0 siblings, 0 replies; 60+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis @ 2009-09-20 17:57 UTC (permalink / raw
To: Gentoo Development
[-- Attachment #1: Type: Text/Plain, Size: 1847 bytes --]
2009-09-20 19:30:54 Nirbheek Chauhan napisał(a):
> On Sun, Sep 20, 2009 at 8:54 PM, Arfrever Frehtes Taifersar Arahesis
> <Arfrever@gentoo.org> wrote:
> > 2009-09-20 16:53:37 Jesús Guerrero napisał(a):
> >> # eselect python set 2
> >> # emerge -s foo
> >> File "/usr/bin/emerge", line 41
> >> except PermissionDenied, e:
> >> ^
> >> SyntaxError: invalid syntax
> >>
> >>
> >> Ummm, yes, it works *beautifully*, you see. Nothing else to add.
> >
> > I have fixed it today :) .
> > http://sources.gentoo.org/viewcvs.py/portage?rev=14289&view=rev
>
> This is silly. portage itself was broken with python-3.1 and you want
> to stabilize it?
You should distinguish between Python version used by Portage and
Python version used by packages which can be installed by Portage.
> Actually, how did you make portage work with both 2.x and 3.x at the
> same time?
Portage doesn't yet work with Python 3, but it hopefully change soon.
> I would be very interested to know this since afaik no useful program
> can work with both python-3 and python-2 with the same code.
It isn't hard to write code which works with both Python 2.6 and 3.*.
Example:
$ cat get_protocol.py
#!/usr/bin/env python
# It allows to use print() function in 2.6.
from __future__ import print_function
import sys
try:
# Python 3
from urllib.parse import urlparse as urllib_parse_urlparse
except ImportError:
# Python 2
from urlparse import urlparse as urllib_parse_urlparse
if len(sys.argv) != 2:
sys.stderr.write("This script requires 1 argument: URL\n")
def get_protocol(url):
return urllib_parse_urlparse(url)[0]
print("Protocol:", get_protocol(sys.argv[1]))
$ ./get_protocol.py http://www.example.com
Protocol: http
--
Arfrever Frehtes Taifersar Arahesis
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 22:41 ` Dawid Węgliński
2009-09-20 14:53 ` Jesús Guerrero
@ 2009-09-20 22:15 ` Mark Loeser
2009-09-20 22:47 ` Dale
1 sibling, 1 reply; 60+ messages in thread
From: Mark Loeser @ 2009-09-20 22:15 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 665 bytes --]
Dawid Węgliński <cla@gentoo.org> said:
> You mix it up. Portage works with python 3.1. If an user switches to python
> 3.1 as the main interpreter, it's possible that his own scripts won't work.
> Marking it stable sometine in november give's some time to ebuilds
> maintainers to fix their python based apps just like it's done with gcc
> stabilization.
And you are mixing that up. We never mark GCC stable before we fix
everything we have identified as a problem, or pretty close to
everything.
--
Mark Loeser
email - halcy0n AT gentoo DOT org
email - mark AT halcy0n DOT com
web - http://www.halcy0n.com
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 22:15 ` Mark Loeser
@ 2009-09-20 22:47 ` Dale
0 siblings, 0 replies; 60+ messages in thread
From: Dale @ 2009-09-20 22:47 UTC (permalink / raw
To: gentoo-dev
Mark Loeser wrote:
> Dawid Węgliński <cla@gentoo.org> said:
>
>> You mix it up. Portage works with python 3.1. If an user switches to python
>> 3.1 as the main interpreter, it's possible that his own scripts won't work.
>> Marking it stable sometine in november give's some time to ebuilds
>> maintainers to fix their python based apps just like it's done with gcc
>> stabilization.
>>
>
> And you are mixing that up. We never mark GCC stable before we fix
> everything we have identified as a problem, or pretty close to
> everything.
>
>
That will be the next thing he wants to stabilize without testing. I
been using Gentoo for more than 5 years and this is the first time I
ever recall someone wanting to mark something stable that has not been
tested for quite some time and in the normal way. Add in that this is
something that portage itself depends on, this just sounds like a really
bad idea. I hope someone puts a hold on this.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 17:28 ` Olivier Crête
2009-09-19 22:32 ` Dale
@ 2009-09-20 11:18 ` Richard Freeman
2009-09-20 14:51 ` Dale
1 sibling, 1 reply; 60+ messages in thread
From: Richard Freeman @ 2009-09-20 11:18 UTC (permalink / raw
To: gentoo-dev
Olivier Crête wrote:
>
> ~arch is for testing ebuilds, not the upstream package
>
I'm pretty sure this isn't the case - at least not as cleanly as you
suggest. Certainly testing the ebuilds themselves is part of the reason
for having ~arch, but upstream readiness is part of it as well. If a
package hit ~arch and we got 10 serious bugs that were all upstream
problems and then somebody filed a STABLEREQ I know that I wouldn't be
the one to stabilize it.
The whole point of having QA is so that people who don't want to be
bothered with bleeding-edge packages aren't bothered with them. Masking
is for packages with known serious problems, ~arch is for packages that
we think are fine but don't have much production history with, and
stable is for packages that are known to be decent with history.
However, I'm not convinced that the 3.1 issues need to be a showstopper
for going stable. Others have made some of these suggestions, but let
me consolidate some ideas that have come up:
1. A tracking bug should be created to track 3.1 stabilization issues
(assuming it doesn't already exist).
2. Portage (and other system packages) deps should be checked to ensure
it pulls in the current version. This should be carefully coordinated.
3. -dev-announce message sent out to check your python deps and fix
them (logging blockers as needed). This need not be carefully coordinated.
4. einfo message about not eselecting the new version of python. News
message as well.
As long as the current version doesn't go anywhere and the current
version can be re-selected at-will, then I don't see how users can get
themselves into a corner.
The ability to support stuff like this is the reason we have SLOTs in
the first place.
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 11:18 ` Richard Freeman
@ 2009-09-20 14:51 ` Dale
0 siblings, 0 replies; 60+ messages in thread
From: Dale @ 2009-09-20 14:51 UTC (permalink / raw
To: gentoo-dev
Richard Freeman wrote:
> Olivier Crête wrote:
>>
>> ~arch is for testing ebuilds, not the upstream package
>>
>
> I'm pretty sure this isn't the case - at least not as cleanly as you
> suggest. Certainly testing the ebuilds themselves is part of the
> reason for having ~arch, but upstream readiness is part of it as
> well. If a package hit ~arch and we got 10 serious bugs that were all
> upstream problems and then somebody filed a STABLEREQ I know that I
> wouldn't be the one to stabilize it.
>
> The whole point of having QA is so that people who don't want to be
> bothered with bleeding-edge packages aren't bothered with them.
> Masking is for packages with known serious problems, ~arch is for
> packages that we think are fine but don't have much production history
> with, and stable is for packages that are known to be decent with
> history.
>
> However, I'm not convinced that the 3.1 issues need to be a
> showstopper for going stable. Others have made some of these
> suggestions, but let me consolidate some ideas that have come up:
>
> 1. A tracking bug should be created to track 3.1 stabilization issues
> (assuming it doesn't already exist).
> 2. Portage (and other system packages) deps should be checked to
> ensure it pulls in the current version. This should be carefully
> coordinated.
> 3. -dev-announce message sent out to check your python deps and fix
> them (logging blockers as needed). This need not be carefully
> coordinated.
> 4. einfo message about not eselecting the new version of python.
> News message as well.
>
> As long as the current version doesn't go anywhere and the current
> version can be re-selected at-will, then I don't see how users can get
> themselves into a corner.
>
> The ability to support stuff like this is the reason we have SLOTs in
> the first place.
>
>
Thanks for explaining that better than I could.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 60+ messages in thread
* [gentoo-dev] Re: Stabilization of Python 3.1
2009-09-19 17:21 ` Dale
2009-09-19 17:28 ` Olivier Crête
@ 2009-09-19 17:33 ` Nikos Chantziaras
1 sibling, 0 replies; 60+ messages in thread
From: Nikos Chantziaras @ 2009-09-19 17:33 UTC (permalink / raw
To: gentoo-dev
On 09/19/2009 08:21 PM, Dale wrote:
> Dirkjan Ochtman wrote:
>> On Sat, Sep 19, 2009 at 19:06, Alex Legler<a3li@gentoo.org> wrote:
>>
>>> What is the point of stabilizing it if users shouldn't use it as main
>>> interpreter? Just leave it in ~arch until it can be safely used.
>>>
>>
>> Making it easily available so that people can port stuff, so that the
>> entire world may be able to use it as their main interpreter sooner?
>>
>> Seriously, it's out there, there's no reason to keep it from stable.
>> Just prevent people from making python invoke 3.x and everything will
>> be fine.
>>
>> Cheers,
>>
>> Dirkjan
>>
>>
>>
>
> Isn't ~arch supposed to be for testing? Isn't that the point of having
> ~arch?
For testing, yes. But what about people who want to use it? Not for
portage, not as main interpreter, but simply "use it." Python is a
programming language and has many uses, it's not only there to make
portage happy. There are people who actually use it, and those people
would like it stabilized. Just because portage isn't ported to 3.x yet
shouldn't mean it can't go stable if there are no blockers about 3.x itself.
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 17:09 ` Dirkjan Ochtman
2009-09-19 17:21 ` Dale
@ 2009-09-19 17:26 ` Alex Legler
2009-09-19 18:24 ` AllenJB
2009-09-19 18:20 ` AllenJB
2009-09-20 14:44 ` [gentoo-dev] " Jesús Guerrero
3 siblings, 1 reply; 60+ messages in thread
From: Alex Legler @ 2009-09-19 17:26 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]
On Sat, 19 Sep 2009 19:09:38 +0200, Dirkjan Ochtman <djc@gentoo.org>
wrote:
> On Sat, Sep 19, 2009 at 19:06, Alex Legler <a3li@gentoo.org> wrote:
> > What is the point of stabilizing it if users shouldn't use it as
> > main interpreter? Just leave it in ~arch until it can be safely
> > used.
>
> Making it easily available so that people can port stuff, so that the
> entire world may be able to use it as their main interpreter sooner?
>
Don't you think that ~arch makes it easily available enough for people
who *want* to port stuff?
If I run stable Gentoo, I'm interested in a /stable/ system(tm) and not
the latest Python version that people are still fiddling with.
Especially since the Gentoo core system extensively uses Python. By the
way, does Portage work with Python 3 yet?
> Seriously, it's out there, there's no reason to keep it from stable.
> Just prevent people from making python invoke 3.x and everything will
> be fine.
>
Yeah, right, let's install it on all those stable machines, but then
not use it.
Way to go!
Alex
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 17:26 ` [gentoo-dev] " Alex Legler
@ 2009-09-19 18:24 ` AllenJB
0 siblings, 0 replies; 60+ messages in thread
From: AllenJB @ 2009-09-19 18:24 UTC (permalink / raw
To: gentoo-dev
Alex Legler wrote:
> On Sat, 19 Sep 2009 19:09:38 +0200, Dirkjan Ochtman <djc@gentoo.org>
> wrote:
>
>> Seriously, it's out there, there's no reason to keep it from stable.
>> Just prevent people from making python invoke 3.x and everything will
>> be fine.
>>
>
> Yeah, right, let's install it on all those stable machines, but then
> not use it.
>
> Way to go!
> Alex
Surely this isn't an issue: If the dependencies on packages are correct,
surely this shouldn't happen?
If the dependencies aren't correct, maybe checking and correcting them
for every package that needs python should be a requirement for
stabilization.
AllenJB
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 17:09 ` Dirkjan Ochtman
2009-09-19 17:21 ` Dale
2009-09-19 17:26 ` [gentoo-dev] " Alex Legler
@ 2009-09-19 18:20 ` AllenJB
2009-09-19 18:59 ` Arfrever Frehtes Taifersar Arahesis
2009-09-19 22:52 ` [gentoo-dev] " Mark Bateman
2009-09-20 14:44 ` [gentoo-dev] " Jesús Guerrero
3 siblings, 2 replies; 60+ messages in thread
From: AllenJB @ 2009-09-19 18:20 UTC (permalink / raw
To: gentoo-dev
Dirkjan Ochtman wrote:
> On Sat, Sep 19, 2009 at 19:06, Alex Legler <a3li@gentoo.org> wrote:
>> What is the point of stabilizing it if users shouldn't use it as main
>> interpreter? Just leave it in ~arch until it can be safely used.
>
> Making it easily available so that people can port stuff, so that the
> entire world may be able to use it as their main interpreter sooner?
>
> Seriously, it's out there, there's no reason to keep it from stable.
> Just prevent people from making python invoke 3.x and everything will
> be fine.
>
> Cheers,
>
> Dirkjan
>
Yes, there is a very good reason: The sanity of the users and those who
support them.
As a user who has spent a lot of time on IRC and the forums supporting
other users, I think I can safely say that stabilizing a version of
python which is not supported by portage will end up in a nightmare
scenario. At the very least portage, python-updater and eselect, if not
the majority of the commonly used tools (whichever of gentoolkit,
portage-utils, eix, etc use python), should support python 3.1 before it
goes stable.
Everything would be fine if all the users read news items, forums,
mailing lists and web pages - but they don't. It will get missed by many
many users - too many for something that breaks portage, in my opinion.
I would suggest the developers keep python 3.1 out of stable until it is
supported by portage, puthon-updater and eselect at minimum (ie. you can
easily revert to 2.6).
While writing this an alternative solution has occurred to me: Make sure
portage dependencies are correct so that python doesn't get dep-cleaned
(a brief check of the portage 2.1.6.7 ebuild makes it look like this
currently isn't the case - surely this should've been done as soon as it
was known portage didn't support python 3!) and perhaps add a block to
eselect so that python-3.1 can't be selected as the system python
interpreter until portage supports it.
AllenJB
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 18:20 ` AllenJB
@ 2009-09-19 18:59 ` Arfrever Frehtes Taifersar Arahesis
2009-09-19 19:50 ` Petteri Räty
2009-09-19 22:52 ` [gentoo-dev] " Mark Bateman
1 sibling, 1 reply; 60+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis @ 2009-09-19 18:59 UTC (permalink / raw
To: Gentoo Development
[-- Attachment #1: Type: Text/Plain, Size: 1641 bytes --]
2009-09-19 20:20:10 AllenJB napisał(a):
> Dirkjan Ochtman wrote:
> > On Sat, Sep 19, 2009 at 19:06, Alex Legler <a3li@gentoo.org> wrote:
> >> What is the point of stabilizing it if users shouldn't use it as main
> >> interpreter? Just leave it in ~arch until it can be safely used.
> >
> > Making it easily available so that people can port stuff, so that the
> > entire world may be able to use it as their main interpreter sooner?
> >
> > Seriously, it's out there, there's no reason to keep it from stable.
> > Just prevent people from making python invoke 3.x and everything will
> > be fine.
> >
> > Cheers,
> >
> > Dirkjan
> >
>
> Yes, there is a very good reason: The sanity of the users and those who
> support them.
>
> As a user who has spent a lot of time on IRC and the forums supporting
> other users, I think I can safely say that stabilizing a version of
> python which is not supported by portage will end up in a nightmare
> scenario. At the very least portage, python-updater and eselect, if not
> the majority of the commonly used tools (whichever of gentoolkit,
> portage-utils, eix, etc use python), should support python 3.1 before it
> goes stable.
python-updater and eselect are written in bash. portage-utils are written
in C. eix is written in C++.
> perhaps add a block to eselect so that python-3.1 can't be selected as
> the system python interpreter until portage supports it.
Users might want to sometimes temporarily switch to Python 3 to test some
Portage-unrelated code.
Anyway Portage will support Python 3 soon.
--
Arfrever Frehtes Taifersar Arahesis
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 18:59 ` Arfrever Frehtes Taifersar Arahesis
@ 2009-09-19 19:50 ` Petteri Räty
2009-09-19 20:21 ` Robert Bridge
0 siblings, 1 reply; 60+ messages in thread
From: Petteri Räty @ 2009-09-19 19:50 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1967 bytes --]
Arfrever Frehtes Taifersar Arahesis wrote:
> 2009-09-19 20:20:10 AllenJB napisał(a):
>> Dirkjan Ochtman wrote:
>>> On Sat, Sep 19, 2009 at 19:06, Alex Legler <a3li@gentoo.org> wrote:
>>>> What is the point of stabilizing it if users shouldn't use it as main
>>>> interpreter? Just leave it in ~arch until it can be safely used.
>>> Making it easily available so that people can port stuff, so that the
>>> entire world may be able to use it as their main interpreter sooner?
>>>
>>> Seriously, it's out there, there's no reason to keep it from stable.
>>> Just prevent people from making python invoke 3.x and everything will
>>> be fine.
>>>
>>> Cheers,
>>>
>>> Dirkjan
>>>
>> Yes, there is a very good reason: The sanity of the users and those who
>> support them.
>>
>> As a user who has spent a lot of time on IRC and the forums supporting
>> other users, I think I can safely say that stabilizing a version of
>> python which is not supported by portage will end up in a nightmare
>> scenario. At the very least portage, python-updater and eselect, if not
>> the majority of the commonly used tools (whichever of gentoolkit,
>> portage-utils, eix, etc use python), should support python 3.1 before it
>> goes stable.
>
> python-updater and eselect are written in bash. portage-utils are written
> in C. eix is written in C++.
>
>> perhaps add a block to eselect so that python-3.1 can't be selected as
>> the system python interpreter until portage supports it.
>
> Users might want to sometimes temporarily switch to Python 3 to test some
> Portage-unrelated code.
> Anyway Portage will support Python 3 soon.
>
The users who test code usually have the skills to unmask the things
they need. Stabling 3.x should bring benefit to people who don't write
anything in python because it will be upgraded for all users. If we
don't make 3.x part of system then we can talk about stabilizing it.
Regards,
Petteri
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 19:50 ` Petteri Räty
@ 2009-09-19 20:21 ` Robert Bridge
2009-09-19 23:29 ` Alex Alexander
0 siblings, 1 reply; 60+ messages in thread
From: Robert Bridge @ 2009-09-19 20:21 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 484 bytes --]
Speaking as a user, I seem to recall having multiple versions of python
installed in the past, and never really knowing or caring which version was
being used so long as stuff worked. If you want to install python-3.14159 in
the stable tree, than go right ahead, so long as anything that doesn't work
with python-3 can still access python-2 and does so without me knowing, it
doesn't matter.
So the question isn't SHOULD python-3 be stabilised, it's what will break if
it is surely?
[-- Attachment #2: Type: text/html, Size: 513 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 20:21 ` Robert Bridge
@ 2009-09-19 23:29 ` Alex Alexander
2009-09-20 10:35 ` Petteri Räty
0 siblings, 1 reply; 60+ messages in thread
From: Alex Alexander @ 2009-09-19 23:29 UTC (permalink / raw
To: gentoo-dev
*On Sat, Sep 19, 2009 at 23:21, Robert Bridge <robert@robbieab.com> wrote:
> So the question isn't SHOULD python-3 be stabilised, it's what will break if
> it is surely?
There seems to be a misunderstanding on what will happen if/when
python 3 gets stabilized.
The short answer is... *drum roll*... nothing :)
I'm guessing that the idea of getting python 3 stable is to allow
people interested in using it to do so easily. We're talking about the
stabilization of python 3, NOT switching portage or your system to it.
Python 2.6 will continue to be the user's default python even after he
installs version 3. In fact, if you're using ~testing you should have
it already and your system is probably still working OK :)
Now.. if a user decides to switch his system *manually* to python 3
without thinking... he's asking for it :)
--
Alex || wired
Gentoo Dev
www.linuxized.com
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 23:29 ` Alex Alexander
@ 2009-09-20 10:35 ` Petteri Räty
2009-09-20 20:33 ` Zac Medico
0 siblings, 1 reply; 60+ messages in thread
From: Petteri Räty @ 2009-09-20 10:35 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 689 bytes --]
Alex Alexander wrote:
> *On Sat, Sep 19, 2009 at 23:21, Robert Bridge <robert@robbieab.com> wrote:
>> So the question isn't SHOULD python-3 be stabilised, it's what will break if
>> it is surely?
>
> There seems to be a misunderstanding on what will happen if/when
> python 3 gets stabilized.
>
> The short answer is... *drum roll*... nothing :)
>
Every Gentoo system where world or system includes deps like
>=dev-lang/python-2.5 will get it installed because in this case Portage
will automatically update to the latest slot at least according to my
quick research. I don't like putting stuff to users systems that they
have no need for.
Regards,
Petteri
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 10:35 ` Petteri Räty
@ 2009-09-20 20:33 ` Zac Medico
0 siblings, 0 replies; 60+ messages in thread
From: Zac Medico @ 2009-09-20 20:33 UTC (permalink / raw
To: gentoo-dev
Petteri Räty wrote:
> Every Gentoo system where world or system includes deps like
>> =dev-lang/python-2.5 will get it installed because in this case Portage
> will automatically update to the latest slot at least according to my
> quick research. I don't like putting stuff to users systems that they
> have no need for.
For portage-2.1.7 I'm planning to add version range detection, so
ebuilds like that can use <dev-lang/python-3.0 in order to prevent
incompatible new versions of python from being pulled in
unnecessarily. See this bug:
http://bugs.gentoo.org/show_bug.cgi?id=285767
--
Thanks,
Zac
^ permalink raw reply [flat|nested] 60+ messages in thread
* [gentoo-dev] Re: Stabilization of Python 3.1
2009-09-19 18:20 ` AllenJB
2009-09-19 18:59 ` Arfrever Frehtes Taifersar Arahesis
@ 2009-09-19 22:52 ` Mark Bateman
1 sibling, 0 replies; 60+ messages in thread
From: Mark Bateman @ 2009-09-19 22:52 UTC (permalink / raw
To: gentoo-dev
AllenJB <gentoo-lists <at> allenjb.me.uk> writes:
>
> As a user who has spent a lot of time on IRC and the forums supporting
> other users, I think I can safely say that stabilizing a version of
> python which is not supported by portage will end up in a nightmare
> scenario. At the very least portage, python-updater and eselect, if not
> the majority of the commonly used tools (whichever of gentoolkit,
> portage-utils, eix, etc use python), should support python 3.1 before it
> goes stable.
1) All those tools (eselect, python-wrapper, python-updater) are written in
other languages specifically to ensure a means to update python
2) There has existed for a very long time patches to portage to make it
compatible with python3.x
Stabilizing Python3.x isn't really an issue as long as some means to ensure
people do not emerge -c a python2.x version (eg adding it to the system profile)
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-19 17:09 ` Dirkjan Ochtman
` (2 preceding siblings ...)
2009-09-19 18:20 ` AllenJB
@ 2009-09-20 14:44 ` Jesús Guerrero
2009-09-20 15:46 ` Arfrever Frehtes Taifersar Arahesis
3 siblings, 1 reply; 60+ messages in thread
From: Jesús Guerrero @ 2009-09-20 14:44 UTC (permalink / raw
To: gentoo-dev
On Sat, 19 Sep 2009 19:09:38 +0200, Dirkjan Ochtman <djc@gentoo.org>
wrote:
> On Sat, Sep 19, 2009 at 19:06, Alex Legler <a3li@gentoo.org> wrote:
>> What is the point of stabilizing it if users shouldn't use it as main
>> interpreter? Just leave it in ~arch until it can be safely used.
>
> Making it easily available so that people can port stuff, so that the
> entire world may be able to use it as their main interpreter sooner?
Ummm, if someone is not able to keywords the ~arch package, I doubt,
highly doubt, that s/he is going to be able to port anything, seriously...
Just eselect set python to 3.1 and see how "wonderfully" your portage
works...
--
Jesús Guerrero
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 14:44 ` [gentoo-dev] " Jesús Guerrero
@ 2009-09-20 15:46 ` Arfrever Frehtes Taifersar Arahesis
2009-09-20 15:56 ` Nirbheek Chauhan
` (2 more replies)
0 siblings, 3 replies; 60+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis @ 2009-09-20 15:46 UTC (permalink / raw
To: Gentoo Development
[-- Attachment #1: Type: Text/Plain, Size: 917 bytes --]
2009-09-20 16:44:09 Jesús Guerrero napisał(a):
> On Sat, 19 Sep 2009 19:09:38 +0200, Dirkjan Ochtman <djc@gentoo.org>
> wrote:
> > On Sat, Sep 19, 2009 at 19:06, Alex Legler <a3li@gentoo.org> wrote:
> >> What is the point of stabilizing it if users shouldn't use it as main
> >> interpreter? Just leave it in ~arch until it can be safely used.
> >
> > Making it easily available so that people can port stuff, so that the
> > entire world may be able to use it as their main interpreter sooner?
>
> Ummm, if someone is not able to keywords the ~arch package, I doubt,
> highly doubt, that s/he is going to be able to port anything, seriously...
Some packages (whose older versions might be stable) might soon start requiring
Python 3. Stabilization of these packages cannot be delayed due to the fact
that some other packages don't work with Python 3.
--
Arfrever Frehtes Taifersar Arahesis
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 15:46 ` Arfrever Frehtes Taifersar Arahesis
@ 2009-09-20 15:56 ` Nirbheek Chauhan
2009-09-20 16:07 ` Arfrever Frehtes Taifersar Arahesis
2009-09-20 16:51 ` Robert Buchholz
2009-09-20 17:10 ` [gentoo-dev] " Petteri Räty
2 siblings, 1 reply; 60+ messages in thread
From: Nirbheek Chauhan @ 2009-09-20 15:56 UTC (permalink / raw
To: gentoo-dev
On Sun, Sep 20, 2009 at 9:16 PM, Arfrever Frehtes Taifersar Arahesis
<Arfrever@gentoo.org> wrote:
> Some packages (whose older versions might be stable) might soon start requiring
> Python 3. Stabilization of these packages cannot be delayed due to the fact
> that some other packages don't work with Python 3.
>
Are you seriously suggesting that you would knowingly break existing
packages in the tree?
--
~Nirbheek Chauhan
GNOME+Mozilla Team, Gentoo
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 15:56 ` Nirbheek Chauhan
@ 2009-09-20 16:07 ` Arfrever Frehtes Taifersar Arahesis
2009-09-20 17:25 ` Nirbheek Chauhan
0 siblings, 1 reply; 60+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis @ 2009-09-20 16:07 UTC (permalink / raw
To: Gentoo Development
[-- Attachment #1: Type: Text/Plain, Size: 736 bytes --]
2009-09-20 17:56:46 Nirbheek Chauhan napisał(a):
> On Sun, Sep 20, 2009 at 9:16 PM, Arfrever Frehtes Taifersar Arahesis
> <Arfrever@gentoo.org> wrote:
> > Some packages (whose older versions might be stable) might soon start requiring
> > Python 3. Stabilization of these packages cannot be delayed due to the fact
> > that some other packages don't work with Python 3.
> >
>
> Are you seriously suggesting that you would knowingly break existing
> packages in the tree?
Please stop spreading untrue information. Stabilization of Python 3 (and packages
which depend on Python 3) wouldn't break any packages and wouldn't require
to switch main Python interpreter to Python 3.
--
Arfrever Frehtes Taifersar Arahesis
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 16:07 ` Arfrever Frehtes Taifersar Arahesis
@ 2009-09-20 17:25 ` Nirbheek Chauhan
2009-09-20 17:35 ` Arfrever Frehtes Taifersar Arahesis
0 siblings, 1 reply; 60+ messages in thread
From: Nirbheek Chauhan @ 2009-09-20 17:25 UTC (permalink / raw
To: gentoo-dev
On Sun, Sep 20, 2009 at 9:37 PM, Arfrever Frehtes Taifersar Arahesis
<Arfrever@gentoo.org> wrote:
> which depend on Python 3) wouldn't break any packages and wouldn't require
> to switch main Python interpreter to Python 3.
>
Package X (stable) requires python-2
Package Y (stable) requires python-3
=> User can't use both at the same time.
You're just introducing another form of dependency hell for the users.
They now have to figure out one of the following:
a) Find version of Package X that works with python-3
b) Find which old version of Y still works with python-2
c) Force X/Y to use python-2/3 by patching the interpreter called
d) Give up and install Ubuntu where somehow magically both work at the same time
--
~Nirbheek Chauhan
GNOME+Mozilla Team, Gentoo
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 17:25 ` Nirbheek Chauhan
@ 2009-09-20 17:35 ` Arfrever Frehtes Taifersar Arahesis
2009-09-20 17:47 ` Nirbheek Chauhan
0 siblings, 1 reply; 60+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis @ 2009-09-20 17:35 UTC (permalink / raw
To: Gentoo Development
[-- Attachment #1: Type: Text/Plain, Size: 731 bytes --]
2009-09-20 19:25:55 Nirbheek Chauhan napisał(a):
> On Sun, Sep 20, 2009 at 9:37 PM, Arfrever Frehtes Taifersar Arahesis
> <Arfrever@gentoo.org> wrote:
> > which depend on Python 3) wouldn't break any packages and wouldn't require
> > to switch main Python interpreter to Python 3.
> >
>
> Package X (stable) requires python-2
> Package Y (stable) requires python-3
>
> => User can't use both at the same time.
Distribute/Setuptools will ensure that appropriate shebang is present in Python
scripts. In other cases, we can easily modify shebangs in installed scripts.
(A new function in python.eclass could be created for this purpose, but until
now it isn't needed.)
--
Arfrever Frehtes Taifersar Arahesis
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 17:35 ` Arfrever Frehtes Taifersar Arahesis
@ 2009-09-20 17:47 ` Nirbheek Chauhan
2009-09-20 18:27 ` Arfrever Frehtes Taifersar Arahesis
0 siblings, 1 reply; 60+ messages in thread
From: Nirbheek Chauhan @ 2009-09-20 17:47 UTC (permalink / raw
To: gentoo-dev
On Sun, Sep 20, 2009 at 11:05 PM, Arfrever Frehtes Taifersar Arahesis
<Arfrever@gentoo.org> wrote:
>> Package X (stable) requires python-2
>> Package Y (stable) requires python-3
>>
>> => User can't use both at the same time.
>
> Distribute/Setuptools will ensure that appropriate shebang is present in Python
> scripts. In other cases, we can easily modify shebangs in installed scripts.
> (A new function in python.eclass could be created for this purpose, but until
> now it isn't needed.)
>
Oooh, this will lead to more phun!
Package A (module, stable) requires python-3
However, A is a dependency of *both* X and Y
Now what? Slotting? Install to both/all python prefixes? Or some other
ugly solution?
Seriously, if you *really* *really* want python-3 stable, it should:
1) NOT show up in `eselect python` to set as the default interpreter
2) NOT be a dependency of any package in stable
3) Be accessibly ONLY via the name "python-3" (or similar)
Which means, that for stable users, it will be for personal projects
only. In which case, I don't see much point in stabilizing it.
--
~Nirbheek Chauhan
GNOME+Mozilla Team, Gentoo
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 17:47 ` Nirbheek Chauhan
@ 2009-09-20 18:27 ` Arfrever Frehtes Taifersar Arahesis
2009-09-20 18:46 ` Nirbheek Chauhan
0 siblings, 1 reply; 60+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis @ 2009-09-20 18:27 UTC (permalink / raw
To: Gentoo Development
[-- Attachment #1: Type: Text/Plain, Size: 2663 bytes --]
2009-09-20 19:47:28 Nirbheek Chauhan napisał(a):
> On Sun, Sep 20, 2009 at 11:05 PM, Arfrever Frehtes Taifersar Arahesis
> <Arfrever@gentoo.org> wrote:
> >> Package X (stable) requires python-2
> >> Package Y (stable) requires python-3
> >>
> >> => User can't use both at the same time.
> >
> > Distribute/Setuptools will ensure that appropriate shebang is present in Python
> > scripts. In other cases, we can easily modify shebangs in installed scripts.
> > (A new function in python.eclass could be created for this purpose, but until
> > now it isn't needed.)
> >
>
> Oooh, this will lead to more phun!
>
> Package A (module, stable) requires python-3
>
> However, A is a dependency of *both* X and Y
>
> Now what? Slotting? Install to both/all python prefixes? Or some other
> ugly solution?
There is a difference between Python scripts and Python modules.
Python scripts should have shebang and this shebang is used to decide
which interpreter should be used when './script.py' is called. But it
is possible to call Python scripts using 'pythonX.Y script.py' which
will enforce using of pythonX.Y instead of interpreter specified in
shebang in this script. When one Python script executes another Python
script (using e.g. subprocess.Popen()) then both scripts will work
correctly even when they have different shebangs.
Python modules shouldn't have shebang. Python modules are intended to
be imported from Python scripts or other Python modules. Any shebang
in a Python module is ignored, when this module is imported using 'import'
statement.
The chance that well known and often used Python modules start
unconditionally require Python 3 in the near future is small, but
Python scripts can safely do it.
For example PyQt4 supports both Python 2 and 3, but a useful script, which
uses PyQt4, might require Python 3.
> Seriously, if you *really* *really* want python-3 stable, it should:
>
> 1) NOT show up in `eselect python` to set as the default interpreter
When a user wants to work for an hour with a script requiring Python 3,
and doesn't want to use e.g. Portage during this time, then it is
reasonable to run 'eselect python set python3.1' once and be able
to just use './script.py' instead of having to type 'python3.1 script.py'
every time. Next this user can switch active Python back to 2.6.
> 2) NOT be a dependency of any package in stable
It isn't implementable without having to change dependencies in hundreds
of packages. There is nothing wrong in having Python 3 installed which
would use small amount of disk space.
--
Arfrever Frehtes Taifersar Arahesis
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 18:27 ` Arfrever Frehtes Taifersar Arahesis
@ 2009-09-20 18:46 ` Nirbheek Chauhan
2009-09-20 19:05 ` Arfrever Frehtes Taifersar Arahesis
2009-10-08 20:56 ` Arfrever Frehtes Taifersar Arahesis
0 siblings, 2 replies; 60+ messages in thread
From: Nirbheek Chauhan @ 2009-09-20 18:46 UTC (permalink / raw
To: gentoo-dev
On Sun, Sep 20, 2009 at 11:57 PM, Arfrever Frehtes Taifersar Arahesis
<Arfrever@gentoo.org> wrote:
> There is a difference between Python scripts and Python modules.
>
Yes, I'm well aware of the difference between them.
[snip]
> Python modules shouldn't have shebang. Python modules are intended to
> be imported from Python scripts or other Python modules. Any shebang
> in a Python module is ignored, when this module is imported using 'import'
> statement.
>
You forget that the search path for both installs is different, and
hence modules installed for python-3 cannot be found/used by scripts
using python-2; which results in the dependency hell; which was the
basis for my whole argument.
>
>> Seriously, if you *really* *really* want python-3 stable, it should:
>>
>> 1) NOT show up in `eselect python` to set as the default interpreter
>
> When a user wants to work for an hour with a script requiring Python 3,
> and doesn't want to use e.g. Portage during this time, then it is
> reasonable to run 'eselect python set python3.1' once and be able
> to just use './script.py' instead of having to type 'python3.1 script.py'
> every time. Next this user can switch active Python back to 2.6.
>
The user would rather just edit the shebang for an hour rather than
become root, eselect and get back. Only us weird system-fudgers always
have a root shell running, most people rarely do.
>> 2) NOT be a dependency of any package in stable
>
> It isn't implementable without having to change dependencies in hundreds
> of packages. There is nothing wrong in having Python 3 installed which
> would use small amount of disk space.
>
You're twisting what I mean. You know what I mean -- packages
*needing* python-3.
--
~Nirbheek Chauhan
GNOME+Mozilla Team, Gentoo
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 18:46 ` Nirbheek Chauhan
@ 2009-09-20 19:05 ` Arfrever Frehtes Taifersar Arahesis
2009-10-08 20:56 ` Arfrever Frehtes Taifersar Arahesis
1 sibling, 0 replies; 60+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis @ 2009-09-20 19:05 UTC (permalink / raw
To: Gentoo Development
[-- Attachment #1: Type: Text/Plain, Size: 1570 bytes --]
2009-09-20 20:46:17 Nirbheek Chauhan napisał(a):
> On Sun, Sep 20, 2009 at 11:57 PM, Arfrever Frehtes Taifersar Arahesis
> <Arfrever@gentoo.org> wrote:
> > There is a difference between Python scripts and Python modules.
> >
>
> Yes, I'm well aware of the difference between them.
>
> [snip]
> > Python modules shouldn't have shebang. Python modules are intended to
> > be imported from Python scripts or other Python modules. Any shebang
> > in a Python module is ignored, when this module is imported using 'import'
> > statement.
> >
>
> You forget that the search path for both installs is different, and
> hence modules installed for python-3 cannot be found/used by scripts
> using python-2;
These modules can be installed for both Python 2 and 3 simultaneously.
> >> Seriously, if you *really* *really* want python-3 stable, it should:
> ...
> >> 2) NOT be a dependency of any package in stable
> >
> > It isn't implementable without having to change dependencies in hundreds
> > of packages. There is nothing wrong in having Python 3 installed which
> > would use small amount of disk space.
> >
>
> You're twisting what I mean. You know what I mean -- packages
> *needing* python-3.
So "Seriously, if you *really* *really* want python-3 stable, it should:
...
2) NOT be a dependency of any package in stable" is already met, because
no stable package unconditionally needs Python 3. If it was otherwise,
then the dependency tree of these stable packages would be broken.
--
Arfrever Frehtes Taifersar Arahesis
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 18:46 ` Nirbheek Chauhan
2009-09-20 19:05 ` Arfrever Frehtes Taifersar Arahesis
@ 2009-10-08 20:56 ` Arfrever Frehtes Taifersar Arahesis
1 sibling, 0 replies; 60+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis @ 2009-10-08 20:56 UTC (permalink / raw
To: Gentoo Development
[-- Attachment #1: Type: Text/Plain, Size: 1023 bytes --]
2009-09-20 20:46:17 Nirbheek Chauhan napisał(a):
> On Sun, Sep 20, 2009 at 11:57 PM, Arfrever Frehtes Taifersar Arahesis
> <Arfrever@gentoo.org> wrote:
> > There is a difference between Python scripts and Python modules.
> >
>
> Yes, I'm well aware of the difference between them.
>
> [snip]
> > Python modules shouldn't have shebang. Python modules are intended to
> > be imported from Python scripts or other Python modules. Any shebang
> > in a Python module is ignored, when this module is imported using 'import'
> > statement.
> >
>
> You forget that the search path for both installs is different, and
> hence modules installed for python-3 cannot be found/used by scripts
> using python-2; which results in the dependency hell; which was the
> basis for my whole argument.
When both Python 2 and Python 3 are installed, then Python modules, which
support both Python 2 and Python 3, are automatically installed for both
Python 2 and Python 3.
--
Arfrever Frehtes Taifersar Arahesis
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 15:46 ` Arfrever Frehtes Taifersar Arahesis
2009-09-20 15:56 ` Nirbheek Chauhan
@ 2009-09-20 16:51 ` Robert Buchholz
2009-09-20 17:25 ` Arfrever Frehtes Taifersar Arahesis
2009-09-20 17:10 ` [gentoo-dev] " Petteri Räty
2 siblings, 1 reply; 60+ messages in thread
From: Robert Buchholz @ 2009-09-20 16:51 UTC (permalink / raw
To: gentoo-dev; +Cc: Arfrever Frehtes Taifersar Arahesis
[-- Attachment #1: Type: text/plain, Size: 708 bytes --]
On Sunday 20 September 2009, Arfrever Frehtes Taifersar Arahesis wrote:
> Some packages (whose older versions might be stable) might soon start
> requiring Python 3. Stabilization of these packages cannot be delayed
> due to the fact that some other packages don't work with Python 3.
Of course they can. That is exactly the reason I am using a distribution
(instead of LFS), because I expect maintainers of packages to
coordinate and define a working set of packages for me to use. This
includes holding back updates, fast-tracking updates, forward- and
backward-porting. Automatisms in updates and blindly following upstream
removes that extra value we are there to provide.
Robert
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 16:51 ` Robert Buchholz
@ 2009-09-20 17:25 ` Arfrever Frehtes Taifersar Arahesis
2009-09-20 22:20 ` Mark Loeser
0 siblings, 1 reply; 60+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis @ 2009-09-20 17:25 UTC (permalink / raw
To: Gentoo Development
[-- Attachment #1: Type: Text/Plain, Size: 916 bytes --]
2009-09-20 18:51:53 Robert Buchholz napisał(a):
> On Sunday 20 September 2009, Arfrever Frehtes Taifersar Arahesis wrote:
> > Some packages (whose older versions might be stable) might soon start
> > requiring Python 3. Stabilization of these packages cannot be delayed
> > due to the fact that some other packages don't work with Python 3.
>
> Of course they can. That is exactly the reason I am using a distribution
> (instead of LFS), because I expect maintainers of packages to
> coordinate and define a working set of packages for me to use. This
> includes holding back updates, fast-tracking updates, forward- and
> backward-porting. Automatisms in updates and blindly following upstream
> removes that extra value we are there to provide.
I agree. But Python 3.1 doesn't have more issues than Python 2.6, so
the stabilization is reasonable.
--
Arfrever Frehtes Taifersar Arahesis
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 17:25 ` Arfrever Frehtes Taifersar Arahesis
@ 2009-09-20 22:20 ` Mark Loeser
2009-09-21 1:17 ` Brian Harring
0 siblings, 1 reply; 60+ messages in thread
From: Mark Loeser @ 2009-09-20 22:20 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 701 bytes --]
Arfrever Frehtes Taifersar Arahesis <Arfrever@gentoo.org> said:
> I agree. But Python 3.1 doesn't have more issues than Python 2.6, so
> the stabilization is reasonable.
And how about all of the packages in the tree that use python? You are
missing that huge part. That's like saying libfoo works absolutely
great, but every single application that links to libfoo now breaks with
the new release of libfoo-2.0. The things that use your package are
just as important when looking to stablize something or to move it out
of package.mask.
--
Mark Loeser
email - halcy0n AT gentoo DOT org
email - mark AT halcy0n DOT com
web - http://www.halcy0n.com
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 22:20 ` Mark Loeser
@ 2009-09-21 1:17 ` Brian Harring
2009-09-21 6:18 ` [gentoo-dev] " Duncan
0 siblings, 1 reply; 60+ messages in thread
From: Brian Harring @ 2009-09-21 1:17 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1826 bytes --]
On Sun, Sep 20, 2009 at 06:20:41PM -0400, Mark Loeser wrote:
> Arfrever Frehtes Taifersar Arahesis <Arfrever@gentoo.org> said:
> > I agree. But Python 3.1 doesn't have more issues than Python 2.6, so
> > the stabilization is reasonable.
>
> And how about all of the packages in the tree that use python? You are
> missing that huge part. That's like saying libfoo works absolutely
> great, but every single application that links to libfoo now breaks with
> the new release of libfoo-2.0. The things that use your package are
> just as important when looking to stablize something or to move it out
> of package.mask.
Mark pretty much nailed it on the head. Before even looking at
stabilizing py3k it probably would be a good idea to identify what
libs/frameworks actually *work* with it out of the box.
Keep in mind that gentoo pkging of python ebuilds isn't slotted on
python version- meaning you wind up with either setuptools for 2.5 or
for 2.6. Then you take a look at the larger frameworks like
numpy and twisted to see if they actually support 3k w/ existing
releases. Not a huge number do, at least for actual releases (random
branches don't count here).
If the big boys don't support 3k yet, it doesn't much matter if the
small fry do, thus the gain from having py3k stabilized is way less
and the cost in terms of user annoyance is way larger.
Regardless of the potential portage issue, I honestly don't think the
state of python libs is at the point that running purely py3k w/
single slotting of python pkgs is viable.
Basically what gain is there? Stabilizing it at this point
comes off as "whee, we have py3k stabilized! Now go mask it on all
of your boxes since not a lot of the useful things play nice with
it right now!"
My 2 cents.
~harring
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread
* [gentoo-dev] Re: Stabilization of Python 3.1
2009-09-21 1:17 ` Brian Harring
@ 2009-09-21 6:18 ` Duncan
0 siblings, 0 replies; 60+ messages in thread
From: Duncan @ 2009-09-21 6:18 UTC (permalink / raw
To: gentoo-dev
Brian Harring posted on Sun, 20 Sep 2009 18:17:35 -0700 as excerpted:
> Basically what gain is there? Stabilizing it at this point comes off as
> "whee, we have py3k stabilized! Now go mask it on all of your boxes
> since not a lot of the useful things play nice with it right now!"
I'm on ~arch, so dealt with it already, doing pretty much exactly that.
Nothing I have installed uses py3k yet, and there's really no reason I
need it installed, so I have it locally masked.
At some point, various packages will begin to depend on it, and when they
need stabilizing, we'll need py3k stabilized as well. But meanwhile, as
long as it itself is working well, we can use the time until then to
smooth the transition when that day arrives, arranging for modules to
install in multiple slots, etc.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
^ permalink raw reply [flat|nested] 60+ messages in thread
* Re: [gentoo-dev] Stabilization of Python 3.1
2009-09-20 15:46 ` Arfrever Frehtes Taifersar Arahesis
2009-09-20 15:56 ` Nirbheek Chauhan
2009-09-20 16:51 ` Robert Buchholz
@ 2009-09-20 17:10 ` Petteri Räty
2 siblings, 0 replies; 60+ messages in thread
From: Petteri Räty @ 2009-09-20 17:10 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1106 bytes --]
Arfrever Frehtes Taifersar Arahesis wrote:
> 2009-09-20 16:44:09 Jesús Guerrero napisał(a):
>> On Sat, 19 Sep 2009 19:09:38 +0200, Dirkjan Ochtman <djc@gentoo.org>
>> wrote:
>>> On Sat, Sep 19, 2009 at 19:06, Alex Legler <a3li@gentoo.org> wrote:
>>>> What is the point of stabilizing it if users shouldn't use it as main
>>>> interpreter? Just leave it in ~arch until it can be safely used.
>>> Making it easily available so that people can port stuff, so that the
>>> entire world may be able to use it as their main interpreter sooner?
>> Ummm, if someone is not able to keywords the ~arch package, I doubt,
>> highly doubt, that s/he is going to be able to port anything, seriously...
>
> Some packages (whose older versions might be stable) might soon start requiring
> Python 3. Stabilization of these packages cannot be delayed due to the fact
> that some other packages don't work with Python 3.
>
Yes indeed and when you have enough apps needing Python 3, it's much
easier to sell python 3 to the developer base as there's actually
benefit to users.
Regards,
Petteri
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 60+ messages in thread