Installing 2.5 with 2.4?

J

John Salerno

Hi all. Just curious, before I do it myself, about the best way to
install 2.5 if it's the only version I want to use. Should I uninstall
2.4 first? Does 2.5 replace 2.4? I doubt the latter, but if I install
2.5, does that mean I need to reinstall all the extensions I had for 2.4
again, or does 2.5 detect them somehow?

Thanks,
John
 
F

Fredrik Lundh

John said:
Hi all. Just curious, before I do it myself, about the best way to
install 2.5 if it's the only version I want to use. Should I uninstall
2.4 first?

if you don't plan to use it anymore, yes.
Does 2.5 replace 2.4?
no.

I doubt the latter, but if I install 2.5, does that mean I need to
> reinstall all the extensions I had for 2.4 again
yes.

does 2.5 detect them somehow?

no. extensions built for 2.5 are, in general, not compatible with
extensions built for 2.4.

</F>
 
D

Diez B. Roggisch

John said:
Hi all. Just curious, before I do it myself, about the best way to
install 2.5 if it's the only version I want to use. Should I uninstall
2.4 first? Does 2.5 replace 2.4? I doubt the latter, but if I install
2.5, does that mean I need to reinstall all the extensions I had for 2.4
again, or does 2.5 detect them somehow?

Without an OS given, difficult answer. Generally, you can assume that there
is no need to ditch one version because you use another, they don't
interfer with each other. Only which one is perceived as "current" might
change and alter some behavior.

However, you have to install all extensions again, that is for sure. And
most probably some of them won't work so far, as they might need some
modification or at least time to make them available as binary.

Diez
 
J

John Salerno

Diez said:
Without an OS given, difficult answer. Generally, you can assume that there
is no need to ditch one version because you use another, they don't
interfer with each other. Only which one is perceived as "current" might
change and alter some behavior.

However, you have to install all extensions again, that is for sure. And
most probably some of them won't work so far, as they might need some
modification or at least time to make them available as binary.

Diez

Thanks for the answers guys. I'm using WinXP. I noticed that when I
installed 2.5rc2, it wasn't automatically assigned as the default
version of Python. I wasn't sure if this was just because it was an RC,
or maybe I have to manually make 2.5 the default. But I will uninstall
2.4 first anyway, so it shouldn't matter.

Can't wait to play around with it! :)
 
J

John Machin

John said:
Thanks for the answers guys. I'm using WinXP. I noticed that when I
installed 2.5rc2, it wasn't automatically assigned as the default
version of Python. I wasn't sure if this was just because it was an RC,
or maybe I have to manually make 2.5 the default. But I will uninstall
2.4 first anyway, so it shouldn't matter.

1. You need to set your path manually. A BAT file called pypath.bat
placed somewhere on your PATH and containing:
path c:\python%1;c:\python%1\scripts;%path%
might come in handy. Warning: this is best used once each time you open
up a command window; it's cumulative (Windows is not smart enough to
remove duplicate entries) and there is a an upper limit (I believe) on
the size of the PATH.
2. Re-installing purely-Python packages is highly desirable -- don't
just copy existing files from 2.4.
3. Re-installing packages with a binary component (.pyd) on Windows is
*essential* -- they won't work on a Python version other than the one
whose libs they were linked against.

I'd suggest that you uninstall 2.4 later if at all. Ensure that you
have got all the extensions you want/need for 2.5 before you burn your
boats. As Diez says in effect, there is no guarantee that any
particular extension is available for 2.5 on Windows right now.

Cheers,
John
 
J

John Salerno

John said:
I'd suggest that you uninstall 2.4 later if at all. Ensure that you
have got all the extensions you want/need for 2.5 before you burn your
boats. As Diez says in effect, there is no guarantee that any
particular extension is available for 2.5 on Windows right now.

Thanks for the tips. As it turns out, all I really need for 2.4 is
mysqldb, but since I don't see it for 2.5 yet, I'm keeping 2.4.3 around
for now.
 
D

Duncan Booth

John Machin said:
1. You need to set your path manually. A BAT file called pypath.bat
placed somewhere on your PATH and containing:
path c:\python%1;c:\python%1\scripts;%path%
might come in handy. Warning: this is best used once each time you open
up a command window; it's cumulative (Windows is not smart enough to
remove duplicate entries) and there is a an upper limit (I believe) on
the size of the PATH.

Windows is only smart enough to avoid duplicate entries if you tell it
to do that. e.g.

PATH c:\python25;c:\python25\scripts;%PATH:c:\python25;c:\python25\scripts;=%

will add the two Python 2.5 folders to the head of the path without
duplicating them.
 
J

John Machin

Duncan said:
Windows is only smart enough to avoid duplicate entries if you tell it
to do that. e.g.

PATH c:\python25;c:\python25\scripts;%PATH:c:\python25;c:\python25\scripts;=%

will add the two Python 2.5 folders to the head of the path without
duplicating them.

Wow .. I didn't know that! What's the syntax? Something like
%variablename[:eek:ldtext=[newtext]]%
?
Where is this documented?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top