You are not logged in.

#1 2008-09-30 18:03:11

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

What will Arch's upgrade strategy be for Python2.6 / Python3.0?

The releases of Python 2.6 and Python 3.0 are around the corner. (Both are in RC stage now.)

I'm pretty new to Arch so haven't been here through a major language change (whether Python, Perl, or whatever). I imagine it can be a lot of trouble.

Python2.6 and Python3.0 are now available in AUR; but changing the base language install threatens to raise all sorts of new problems.

Can anyone fill me in on what the distro's upgrade strategy will be? Will there be a period where the norm is to have both Python2.5 and one of the newer versions installed, and for packages that use Python to be migrated over/bugchecked slowly? Or a marathon week where almost everything that uses Python is recompiled at once, put into testing, and cross our fingers?

Because the Python3.0 changes are so radical, I'm expecting for most people to have both Python3.0 and Python2.something installed for a while. But I don't know whether a rolling distro like Arch likes to do the same for Python2.5 and Python2.6.

Offline

#2 2008-09-30 18:15:49

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 3,528

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

This is nothing official, just my 5 cents on the matter: (how I would do it if I was mantaining python)
Python 3.0; seperate python3 package
Python 2.6; python
Python 2.5; seperate python25 package

And then maby remove 2.5 after a while, when most libs and apps have been updated to 2.6.

From the python devs it's stated that 2.x and 3.x will be released side by side for quite a long time (years?) yet. So having a seperate python3 package makes sence. It's also fairly easy and clean with altinstall.

Last edited by Mr.Elendig (2008-09-30 18:16:47)


Evil #archlinux@freenode channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2008-09-30 19:18:24

neowolf
Member
From: North Carolina
Registered: 2008-01-27
Posts: 105

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

If the way Qt was handled is the norm then I suspect eventually the python package will become 3.0 and for legacy purposes we'll see a sort of python2 package around to keep existing apps in line.

Offline

#4 2008-09-30 19:35:28

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 3,528

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

neowolf wrote:

If the way Qt was handled is the norm then I suspect eventually the python package will become 3.0 and for legacy purposes we'll see a sort of python2 package around to keep existing apps in line.

That would cause a load of breakage tho, since python3 is not backwards compatible, so it would break a load of apps/scripts that does #!/usr/bin/python


Evil #archlinux@freenode channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2008-09-30 19:38:06

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,675

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Profjim wrote:

Or a marathon week where almost everything that uses Python is recompiled at once, put into testing, and cross our fingers?

That sounds like it would be fun big_smile


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#6 2008-09-30 20:45:07

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 3,528

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Specialy since python is compiled at runtime tongue


Evil #archlinux@freenode channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2008-09-30 23:17:36

kensai
Member
From: Puerto Rico
Registered: 2005-06-03
Posts: 2,475
Website

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Allan is having fun doing the python upgrade work. tongue

/me hides


Follow me in: Identi.ca, Twitter, Google+

Offline

#8 2008-09-30 23:24:38

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Well, these are my packages so I should know what will be happening....  Take that as a warning that things will probably break - the saying "Allan broke it" did not come out of nowhere big_smile  (Well, it did actually...)

My current plan A is (subject to change):
python2.6 = python2
python3.0 = python

Given almost nothing will run against python3 yet, I will build everything against python2.6.  From my testing, everything seems to be working with python2.6 (I can't test everything...)  so I am hoping the need for a python25 package will be non-existent.

FYI - there are 47 rebuilds for python2.5 -> python2.6 from programs that link to libpython2.5.so and there will be another 46 to fix dependencies from python to python2 and potenitally another 49 rebuilds to change any /usr/bin/python to /usr/bin/python2.  That is just the [extra] repo.  I haven't search [community] for rebuilds yet.

My plan B is:
python2.6 -> python
python3 -> python3

This saves the need to patch any /usr/bin/python's at the moment, but will require them as we transition to python3... So its work now vs work later.

Anyway, none of this will happen at least until gnome is out of [testing] (due to the overlap in packages), python3 is released and I actually decide what I am doing!

Offline

#9 2008-09-30 23:46:58

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Thanks for the update Allan!

Offline

#10 2008-10-03 21:48:28

dsr
Member
Registered: 2008-05-31
Posts: 187

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Allan, now that python 2.6 is out (and not 3.0), are you going with plan B?

Offline

#11 2008-10-03 23:26:28

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 3,528

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Allan wrote:

Well, these are my packages so I should know what will be happening....  Take that as a warning that things will probably break - the saying "Allan broke it" did not come out of nowhere big_smile  (Well, it did actually...)

My current plan A is (subject to change):
python2.6 = python2
python3.0 = python

Given almost nothing will run against python3 yet, I will build everything against python2.6.  From my testing, everything seems to be working with python2.6 (I can't test everything...)  so I am hoping the need for a python25 package will be non-existent.

FYI - there are 47 rebuilds for python2.5 -> python2.6 from programs that link to libpython2.5.so and there will be another 46 to fix dependencies from python to python2 and potenitally another 49 rebuilds to change any /usr/bin/python to /usr/bin/python2.  That is just the [extra] repo.  I haven't search [community] for rebuilds yet.

My plan B is:
python2.6 -> python
python3 -> python3

This saves the need to patch any /usr/bin/python's at the moment, but will require them as we transition to python3... So its work now vs work later.

Anyway, none of this will happen at least until gnome is out of [testing] (due to the overlap in packages), python3 is released and I actually decide what I am doing!

Personaly I would prefear plan B; python 2.x is not going away anytime soon, and I suspect most apps will continue to be written for 2.x.
I can't say I like the idea of having to patch most python apps to run them with the right interpeter.


Evil #archlinux@freenode channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#12 2008-10-04 01:01:19

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

dsr wrote:

Allan, now that python 2.6 is out (and not 3.0), are you going with plan B?

Have not decided.  Python3 was scheduled for for the 15th of October but RC2 has been delayed so I guess so will the final release.  I can't do much until the [testing] repo is cleared of the gnome and boost updates anyway.

Offline

#13 2008-10-04 01:24:31

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Mr.Elendig wrote:

Personaly I would prefear plan B; python 2.x is not going away anytime soon, and I suspect most apps will continue to be written for 2.x.
I can't say I like the idea of having to patch most python apps to run them with the right interpeter.

Well, it is either patch them now to use python2 or patch them later to use python3...  I agree that it will take a while for apps to be ported because they will have to wait for every library they use to be ported.  But the warnings in python2.6 and the 2to3 too make porting fairly straight forward.

From people I have talked to, opinions are roughly 50/50 on this issue.  This will be a pain of a transition no matter what.  We are going to need python-<lib> and python2-<lib> packages for a while.  I think it is easier long term to add addition python2-<lib> packages that will be removed when no longer needed rather that adding python3-<lib> package that would need renamed.  Also, I managed to transition most of my system (33 packages) to using python2 in about two hours (being generous) + build time.

Offline

#14 2008-10-04 18:04:35

smartcat99s
Member
Registered: 2006-03-17
Posts: 44

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Either way, I'd like to see both the python2 symlink created in the next version bump.


Running Folding@Home for Team 11108 - My Stats

Offline

#15 2008-10-04 18:41:02

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 792

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Allan - you can't please all of the people all of the time.  You have good instincts.  Go for it!

Offline

#16 2008-10-09 21:12:56

SyXbiT
Member
Registered: 2008-06-28
Posts: 152
Website

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

i like plan A smile

Offline

#17 2008-10-10 13:12:10

Riklaunim
Member
Registered: 2005-04-09
Posts: 106
Website

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

/usr/bin/python2 may breake packages from easy_install plus user apps/scripts... and Python 3.0 will kick in when server oriented distros (debian, rhel, ubuntu) will ship with it as default. I can run whatever version of Python on Gentoo or Arch, but it has to be "compatible" with the server environment, which runs debian or ubuntu ^_^
Nice way would be to slot Python 2 and 3 and use some tool to select which is currently used by the system as plain "python" smile

Offline

#18 2008-10-10 16:23:34

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 955

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Offline

#19 2008-10-11 00:37:13

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

And specifically this post in that thread http://archlinux.org/pipermail/arch-dev … 08529.html

Offline

#20 2008-10-11 03:51:15

dsr
Member
Registered: 2008-05-31
Posts: 187

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

That sounds very good. Plan A would break too many packages up front. Roughly how long are gnome and boost rebuilds going to be in [testing]? Are we talking days, weeks, months, etc.?

Offline

#21 2008-10-11 05:44:19

orasis
Member
Registered: 2008-03-22
Posts: 42

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Mr.Elendig wrote:
neowolf wrote:

If the way Qt was handled is the norm then I suspect eventually the python package will become 3.0 and for legacy purposes we'll see a sort of python2 package around to keep existing apps in line.

That would cause a load of breakage tho, since python3 is not backwards compatible, so it would break a load of apps/scripts that does #!/usr/bin/python

Indeed and a lot of programs depend on Python, massive fails.


Thurin1 @ irc.freenode.net #archlinux

Offline

#22 2008-12-05 01:57:11

dsr
Member
Registered: 2008-05-31
Posts: 187

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Hey Allan, now that python 3.0 is finally out big_smile , can we get a status update?

Offline

#23 2008-12-05 02:03:19

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Sure...  I will stick a python3 package into the repos in the next few days.  Once the main libraries that use python are ported (my guess is six months time...)  I will do a python->python2 + python3->python switch.

Offline

#24 2008-12-05 02:25:38

dsr
Member
Registered: 2008-05-31
Posts: 187

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Great, thanks! Though I have a sneaking suspicion that it will take a lot longer than six months before you'll be able to make python 3.0 the default python executable.

Offline

#25 2009-04-18 00:58:58

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 156

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

I've tried installing python 3.0, but it doesn't install adequately, and I suspect it's due to gcc, which the current python package fails to invoke. Installation errors:

./python -E -c 'import sys ; from distutils.util import get_platform ; print(get_platform()+"-"+sys.version[0:3])' >platform
unable to execute gcc: None
....

(python 2.6.2:
./python -E -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
unable to execute gcc: Exec format error
....)

This is why some modules are not importable:
ImportError: No module named math

I hope Allan will fix this installation errors.

update:

even the official python 2.6.1 PKGBUILD doesn't pass "make test" during compilation on x86_64.

Last edited by ahcaliskan (2009-04-18 01:36:38)

Offline

Board footer

Powered by FluxBB