Archlinux:Plan for python upgrade

其他Linux/Unix/BSD/OSX等发行版讨论
头像
hubert_star
论坛版主
帖子: 5373
注册时间: 2007-10-29 22:12
系统: OSX 10.9 + Ub 1304
来自: 江苏南京

Archlinux:Plan for python upgrade

#1

帖子 hubert_star » 2008-10-03 21:51

Hi everybody,

Python-2.6 is out and Python-3.0 is scheduled for release in a couple of
weeks. People have been asking how I am going to handle the update so I
thought I'd post a summary here.

There are packages that need rebuilt not matter how I handle the
upgrade. I know of 39 packages in [extra] which link to
libpython2.5.so. Also 8 packages add their path to the python system
path and it is easier to rebuild them than hack some backwards
compatibility.

My current plan is that the python package will be python3.0 and add a
python2 package for python2.6. This bring in a couple of issues.
Everything that (make)depends on python will need changed to python2 (48
packages). More difficult is that package with "/usr/bin/python" or
"/usr/bin/env python" in their scripts need this fixed (addition 30
rebuilds and effects many of the above rebuilds). Some of these
packages are nice and just require a rebuild and their scripts point in
the right place. Others require a bit of sed magic.

This plan requires a total of 125(!) rebuilds but most of the are fairly
simple to transition to python2. Of the 33 packages on my system, the
only package I have had trouble rebuilding so far is subversion as
autoreconf calls something that calls python but I have not looked into
it too hard or even checked if it as actually a problem...

The backup plan is to keep the python as the python-2 series and add a
python3 package. This means less rebuilds at the moment but this will
make transitioning packages to python3 harder (requiring the sed magic
for scripts to point at python3 instead of python). Also, I personally
think this is the less clean approach long term. But, if people feel
strongly that this is the best route to go, I may be convinced (it is a
lot less work at my end).

Both the gnome and boost rebuilds need to be moved from [testing] before
I start this due to overlapping packages with the python rebuilds.

Cheers,
Allan

转载自archlinux新闻组

看来python3进入系统已经指日可待了
佛经说,人有八苦: 生、老、病、死、求不得、怨憎、爱别离、五阴盛 故我苦!
圣经说,人有七罪: 饕餮、贪婪、懒惰、淫欲、傲慢、嫉妒和暴怒  故我有罪!

我这篇帖子里面没有任何攻击我们伟大的中华人民共和国政府和任劳任怨的人民公仆(和本论坛高素质的版主)的文字和含义;

特此声明!

有些事,我们明知道是错的,也要去坚持,因为不甘心;有些人,我们明知道是爱的,也要去放弃,因为没结局;有时候,我们明知道没路了,却还在前行,因为习惯了。

欢迎来我的新浪微博@me
头像
karron
帖子: 6226
注册时间: 2005-06-11 14:03
来自: 不明真相的群众
联系:

Re: Archlinux:Plan for python upgrade

#2

帖子 karron » 2008-10-03 22:49

疯掉了... python3和python2是不完全兼容的. 贸然升级, 可能有些软件会不能正常使用.
我的blog,关于技术,软件,linux,vim <---- 所有博客均被河蟹.
头像
hubert_star
论坛版主
帖子: 5373
注册时间: 2007-10-29 22:12
系统: OSX 10.9 + Ub 1304
来自: 江苏南京

Re: Archlinux:Plan for python upgrade

#3

帖子 hubert_star » 2008-10-03 22:53

可以说,整个GUI 2/3的软件都要重新调整来过
佛经说,人有八苦: 生、老、病、死、求不得、怨憎、爱别离、五阴盛 故我苦!
圣经说,人有七罪: 饕餮、贪婪、懒惰、淫欲、傲慢、嫉妒和暴怒  故我有罪!

我这篇帖子里面没有任何攻击我们伟大的中华人民共和国政府和任劳任怨的人民公仆(和本论坛高素质的版主)的文字和含义;

特此声明!

有些事,我们明知道是错的,也要去坚持,因为不甘心;有些人,我们明知道是爱的,也要去放弃,因为没结局;有时候,我们明知道没路了,却还在前行,因为习惯了。

欢迎来我的新浪微博@me
头像
karron
帖子: 6226
注册时间: 2005-06-11 14:03
来自: 不明真相的群众
联系:

Re: Archlinux:Plan for python upgrade

#4

帖子 karron » 2008-10-03 22:58

我只能说arch真猛. 或者说, 以后一段时间里面, arch的用户可能会有点惨. 不过也许会一直呆在testing里面吧.
我的blog,关于技术,软件,linux,vim <---- 所有博客均被河蟹.
头像
windwiny
帖子: 2254
注册时间: 2007-03-13 17:26

Re: Archlinux:Plan for python upgrade

#5

帖子 windwiny » 2008-10-03 23:06

arch就是快 强
头像
hubert_star
论坛版主
帖子: 5373
注册时间: 2007-10-29 22:12
系统: OSX 10.9 + Ub 1304
来自: 江苏南京

Re: Archlinux:Plan for python upgrade

#6

帖子 hubert_star » 2008-10-03 23:09

应该在testing里很长一段时间,不会贸然进extra的,其实archlinux不加testing问题很少,很稳定
佛经说,人有八苦: 生、老、病、死、求不得、怨憎、爱别离、五阴盛 故我苦!
圣经说,人有七罪: 饕餮、贪婪、懒惰、淫欲、傲慢、嫉妒和暴怒  故我有罪!

我这篇帖子里面没有任何攻击我们伟大的中华人民共和国政府和任劳任怨的人民公仆(和本论坛高素质的版主)的文字和含义;

特此声明!

有些事,我们明知道是错的,也要去坚持,因为不甘心;有些人,我们明知道是爱的,也要去放弃,因为没结局;有时候,我们明知道没路了,却还在前行,因为习惯了。

欢迎来我的新浪微博@me
头像
HuntXu
帖子: 5776
注册时间: 2007-09-29 3:09

Re: Archlinux:Plan for python upgrade

#7

帖子 HuntXu » 2008-10-03 23:12

有点吓人,估计也要像kdemod那样搞个legacy并存一段时间吧...

还好机器上没很多依赖python的程序...ooo-devel,vim/gvim还有emesene而已...
HUNT Unfortunately No Talent...
头像
karron
帖子: 6226
注册时间: 2005-06-11 14:03
来自: 不明真相的群众
联系:

Re: Archlinux:Plan for python upgrade

#8

帖子 karron » 2008-10-03 23:29

HuntXu 写了:有点吓人,估计也要像kdemod那样搞个legacy并存一段时间吧...

还好机器上没很多依赖python的程序...ooo-devel,vim/gvim还有emesene而已...
有很多重要的但是你平时不会注意的软件都是python写的.
我的blog,关于技术,软件,linux,vim <---- 所有博客均被河蟹.
头像
yysq009
帖子: 2682
注册时间: 2007-01-28 23:00
来自: @江西|南昌@
联系:

Re: Archlinux:Plan for python upgrade

#9

帖子 yysq009 » 2008-10-03 23:44

该来的,迟早要来的!

Do as you would be done by !
头像
jarryson
帖子: 4002
注册时间: 2005-08-14 19:53

Re: Archlinux:Plan for python upgrade

#10

帖子 jarryson » 2008-10-04 0:10

脚本语言应该比其他的要好很多。绝对不会有类似qt3到qt4那样的。

qt3到qt4的时候怎么就没有人说什么呢
头像
karron
帖子: 6226
注册时间: 2005-06-11 14:03
来自: 不明真相的群众
联系:

Re: Archlinux:Plan for python upgrade

#11

帖子 karron » 2008-10-04 0:26

ls, 你要搞明白的是, 我们并没有讨论语言本身的升级. 而是arch现在要将python3作为默认的python, 这个可能会导致很多软件无法正常运行. qt3, qt4, 本身只是运行库, 无所谓什么默认, 只要安装了相应的库, 使用qt3的软件跟使用qt4的软件都是互不影响的. 而python是解释语言, 这个问题就严重得多, 所有的python脚本必须通过python来运行, 而本身python2和python3并不完全兼容, 所以, 遇到的问题远比qt3, qt4严重. 说实在的. qt3, qt4本身就是可以共存, 并不会有什么问题.
我的blog,关于技术,软件,linux,vim <---- 所有博客均被河蟹.
头像
jarryson
帖子: 4002
注册时间: 2005-08-14 19:53

Re: Archlinux:Plan for python upgrade

#12

帖子 jarryson » 2008-10-04 2:16

一样的,qt4和qt3程序不兼容是肯定的,虽然可以共存,不过我是不想存在两种qt的。但是python程序也许还兼容,只是可能需要小幅度修改,个人感觉比gcc,qt更新要好的多。也许是我不清楚到底python3比2.6改变多少接口。想别人python开发者不会没有想到这点,所以就算作为默认的python也没有关系,不可能停滞不前的。
头像
asluozijun
帖子: 132
注册时间: 2010-05-05 14:24

Re: Archlinux:Plan for python upgrade

#13

帖子 asluozijun » 2010-12-30 14:00

自己可以装一个 python2.7x
....
小博客,欢迎光临!http://zhonghe.co.de
有一种被人抛诸脑后的过去,包含一些不该遗忘的点点滴滴。欢笑之余,我将故旧拾起,才刹见自己的薄情。人世间似乎存在着某种公平,每个人都曾被抛掷在他人的遗忘中;而今你所有哽咽难宣的话语,也正是你曾为人所期盼,却永远听不见的字句。” —赫曼 赫塞
JiangHui
论坛版主
帖子: 21308
注册时间: 2007-08-02 20:29
系统: 窓辺とうこ

Re: Archlinux:Plan for python upgrade

#14

帖子 JiangHui » 2010-12-30 14:21

自杀的来挖坟……
头像
susbarbatus
帖子: 2966
注册时间: 2010-04-10 16:14
系统: Arch Linux

Re: Archlinux:Plan for python upgrade

#15

帖子 susbarbatus » 2010-12-30 16:27

原来是坟
沉迷将棋中……
回复