MultiVersionInstalls!

I've added wxversion.py from 2.5.3.1 to our 2.4.2.4 package of
wxPython in Gentoo and moved the directories according to
the excellent and *much* appreciated guide:

http://wiki.wxpython.org/index.cgi/MultiVersionInstalls

Everything seems to be working great. I'm just wondering if
there is anything else needed besides wxversion.py and
wx.pth in 2.4.2.4 before I release these new versions of
wxPython.

I wrote a script to list wxPython versions installed and get
or set the default version. Its made for Gentoo but should
be easy enough to modify for any *nix/wxGTK distro:

http://dev.gentoo.org/~pythonhead/wxpy-config.py

Robert Cakebread wrote:

I've added wxversion.py from 2.5.3.1 to our 2.4.2.4 package of
wxPython in Gentoo and moved the directories according to
the excellent and *much* appreciated guide:

http://wiki.wxpython.org/index.cgi/MultiVersionInstalls

Everything seems to be working great. I'm just wondering if
there is anything else needed besides wxversion.py and
wx.pth in 2.4.2.4 before I release these new versions of
wxPython.

That should be it. There is a bit of code in setup.py and config.py that could be backported to 2.4.2.4's setup.py to automatically install into the subdir, but if your portage scripts are moving things after the fact then it won't be needed. (I'll still need to do it in order to do a 2.4.3 build however so if somebody else did it for me I'd be happy :wink: )

Anyway, I'm glad to see you doing this. It helps to see the appraoch I've taken be validated by a working implementation.

I wrote a script to list wxPython versions installed and get
or set the default version. Its made for Gentoo but should
be easy enough to modify for any *nix/wxGTK distro:

http://dev.gentoo.org/~pythonhead/wxpy-config.py

Cool. This is something that's on my ToDo list as well. I think that it might be a bit better (more general purpose) to use other values in sys to find the site-pacakges dir rather than hard-coding /usr/lib/python{VER}. On the other hand you could just use wxversion.getInstalled() to do the finding of installed versions for you, although it looks at all the dirs on sys.path, not just site-packages.

ยทยทยท

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