Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

upgrade 2.4 -> 2.5 HowTo

已查看 4 次
跳至第一个未读帖子

Helmut Jarausch

未读,
2006年9月4日 04:00:412006/9/4
收件人
Hi,

what has to be done for upgrading from Python 2.4 to 2.5?

- How can I find out which packages (in addition to the core packages) have been
installed up to now
- Can I just copy /usr/local/lib/python2.4/site-packages to
/usr/local/lib/python2.5 ?

Many thanks for a hint,

Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany

Steve Holden

未读,
2006年9月4日 04:41:592006/9/4
收件人 pytho...@python.org
Helmut Jarausch wrote:
> Hi,
>
> what has to be done for upgrading from Python 2.4 to 2.5?
>
> - How can I find out which packages (in addition to the core packages) have been
> installed up to now
> - Can I just copy /usr/local/lib/python2.4/site-packages to
> /usr/local/lib/python2.5 ?
>
Alas, no, this will only work for pure Python packages.

If any of your packages are "extensions" in compiled languages
(typically C or C++) then they need to be completely rebuilt, as the
interpreter API changes between releases.

Technically you should be able to copy the pure Python packages and
midules across, althought eh .pyc file format alos differs between
releases. However, the .pyc files will all be rebuilt automatically when
they are required.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Sibylle Koczian

未读,
2006年9月4日 08:10:272006/9/4
收件人
Helmut Jarausch schrieb:

> Hi,
>
> what has to be done for upgrading from Python 2.4 to 2.5?
>
> - How can I find out which packages (in addition to the core packages)
> have been
> installed up to now
> - Can I just copy /usr/local/lib/python2.4/site-packages to
> /usr/local/lib/python2.5 ?
>
> Many thanks for a hint,
>

Which OS?

Windows: control panel / software will list all python packages which
came with separate installers.

Linux: the package manager of your distribution should tell you what's
installed.

--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : Sibylle...@Bibliothek.Uni-Augsburg.DE

Helmut Jarausch

未读,
2006年9月4日 10:00:332006/9/4
收件人
Sibylle Koczian wrote:
> Helmut Jarausch schrieb:
>> Hi,
>>
>> what has to be done for upgrading from Python 2.4 to 2.5?
>>
>> - How can I find out which packages (in addition to the core packages)
>> have been
>> installed up to now
>> - Can I just copy /usr/local/lib/python2.4/site-packages to
>> /usr/local/lib/python2.5 ?
>>
>> Many thanks for a hint,
>>
>
> Which OS?
>
> Windows: control panel / software will list all python packages which
> came with separate installers.
>
> Linux: the package manager of your distribution should tell you what's
> installed.
>

It's Linux.
Thanks, but I don't have a package manager. I'm working with Linux-From-Scratch.


--

Tim Roberts

未读,
2006年9月4日 20:24:432006/9/4
收件人
Helmut Jarausch <jara...@skynet.be> wrote:
>
>what has to be done for upgrading from Python 2.4 to 2.5?
>
>- How can I find out which packages (in addition to the core packages) have been
> installed up to now
>- Can I just copy /usr/local/lib/python2.4/site-packages to
> /usr/local/lib/python2.5 ?

I've started keeping the tarballs for all of the packages I install in a
single directory, along with a shell script to install each of them. It
makes upgrading much easier. I do this on both Linux and Windows.
--
- Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

0 个新帖子