2.4 and 2.5 installed at the same time

Hi all,

I have been tweaking wxCalender in 2.4 a little and would like to
do some tweaking in 2.5 as well.
Since I'm relativly new to Python and wxPython could somebody
give me some advice on how to install both versions at the same
time so I can use them alternatively.

I already have the 2.5 binaries.
This is on WinXP with Python 2.3

Regards
    Adi

From: Adi Sieker [mailto:ml@sieker.info]

Hi all,

I have been tweaking wxCalender in 2.4 a little and would like to
do some tweaking in 2.5 as well.
Since I'm relativly new to Python and wxPython could somebody
give me some advice on how to install both versions at the same
time so I can use them alternatively.

I already have the 2.5 binaries.
This is on WinXP with Python 2.3

Regards
    Adi

Your wxPython libs get stuck in site-packages. The basic idea is to rename
your existing installation dirs, then install the new version and rename the
dirs whenever you need to swap versions. For example, since you have
wxPython 2.4.x already, name the wx and wxPython dirs to wx24 and
wxPython24. Then install 2.5 and you'll have new wx and wxPython dirs in
C:\Python23\Lib\site-packages. When you want to work with wxPython 2.4.x
again, simply rename wx and wxPython to wx25 and wxPython25 and remove the
suffix for the 24 dirs. You can use this approach for any number of
versions, just be careful about keeping the wx and wxPython dirs in sync
when you do your renames.

The wx-related files in C:\Python23\Scripts will get overwritten with each
install, so if you care about those working you should back them up for a
given version.

I posted a script for easily swapping versions, but I have no idea if/how
you can access archives for the mailing list. Send me email directly if you
want it.

ka

Kevin Altis wrote:

From: Adi Sieker [mailto:ml@sieker.info]

Hi all,

I have been tweaking wxCalender in 2.4 a little and would like to
do some tweaking in 2.5 as well.
Since I'm relativly new to Python and wxPython could somebody
give me some advice on how to install both versions at the same
time so I can use them alternatively.

I already have the 2.5 binaries.
This is on WinXP with Python 2.3

Regards
   Adi

Your wxPython libs get stuck in site-packages. The basic idea is to rename
your existing installation dirs, then install the new version and rename the
dirs whenever you need to swap versions. For example, since you have
wxPython 2.4.x already, name the wx and wxPython dirs to wx24 and
wxPython24. Then install 2.5 and you'll have new wx and wxPython dirs in
C:\Python23\Lib\site-packages. When you want to work with wxPython 2.4.x
again, simply rename wx and wxPython to wx25 and wxPython25 and remove the
suffix for the 24 dirs. You can use this approach for any number of
versions, just be careful about keeping the wx and wxPython dirs in sync
when you do your renames.

Thanks for the Info. I didn't think it'd be as simple as that. :slight_smile:

The wx-related files in C:\Python23\Scripts will get overwritten with each
install, so if you care about those working you should back them up for a
given version.

I made backups of them just in case

I posted a script for easily swapping versions, but I have no idea if/how
you can access archives for the mailing list. Send me email directly if you
want it.

Google is your friend.
I found and it works like a charm.

Regards
    Adi

Kevin Altis wrote:

From: Adi Sieker [mailto:ml@sieker.info]

Hi all,

I have been tweaking wxCalender in 2.4 a little and would like to
do some tweaking in 2.5 as well.
Since I'm relativly new to Python and wxPython could somebody
give me some advice on how to install both versions at the same
time so I can use them alternatively.

I already have the 2.5 binaries.
This is on WinXP with Python 2.3

Regards
   Adi

Your wxPython libs get stuck in site-packages. The basic idea is to rename
your existing installation dirs, then install the new version and rename the
dirs whenever you need to swap versions. For example, since you have
wxPython 2.4.x already, name the wx and wxPython dirs to wx24 and
wxPython24. Then install 2.5 and you'll have new wx and wxPython dirs in
C:\Python23\Lib\site-packages. When you want to work with wxPython 2.4.x
again, simply rename wx and wxPython to wx25 and wxPython25 and remove the
suffix for the 24 dirs. You can use this approach for any number of
versions, just be careful about keeping the wx and wxPython dirs in sync
when you do your renames.

Unless you are command-line-phobic another way to do it that I like is to specify some other install dir besides site-packages for the experimental version, say c:\wxPython-2.5.1, and then setting PYTHONPATH from the command-line when you want to use this version.

  set PYTHONPATH=c:\wxPython-2.5.1
  python test.py

To use the old version just open a new commandline that doesn't have PYTHONPATH set or double click the icon like normal.

The wx-related files in C:\Python23\Scripts will get overwritten with each
install, so if you care about those working you should back them up for a
given version.

Normally that won't matter since all they do is import from tools' module and call its main(). But this time with the switch from wxPython-->wx a few of them may not be compatible between versions anymore.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!