/ Hathaway Weblog / Multiple versions of wxPython on Linux / Unix

Shane :: Python, Linux :: August 30, 2004 # Multiple versions of wxPython on Linux / Unix

Kevin Altis explained how to install multiple versions of wxPython in Windows simultaneously. (http://altis.pycs.net/2004/08/20.html) Here is the method I used to achieve the same goal in Linux. I installed to a custom prefix:

cd ~/src
tar xfz wxPythonSrc-*.tar.gz
cd wxPythonSrc*
./configure --with-opengl --prefix=~/wx
make
make install

At this point, I created a shell script at ~/wx/profile:

WX_BASE=$HOME/wx
export LD_LIBRARY_PATH=$WX_BASE/lib
export PYTHONPATH=$WX_BASE/lib/python2.3/site-packages
export PATH=$WX_BASE/bin:$PATH

Then I finished by typing:

source ~/wx/profile
cd wxPython
python setup.py install --prefix=~/wx

I installed at ~/wx, then followed a similar procedure to install wxPython 2.5.2.7 at ~/wx2. If others are going to use your software, you should use /usr/local or /opt instead of your home directory. Now, when I want to run a Python app that uses wxPython, I type source ~/wx/profile or source ~/wx2/profile first. This method works fine while wxPython's API is in flux. Hopefully it will stabilize at some point.

No further comments may be added.

Click below to fill in the scripture reference.
Your browser is not able to display the scripture fill-in program. To see it, enable Javascript or use Mozilla 1.0 or better.
Behold, now it is called today until the coming of the Son of Man, and verily it is a day of sacrifice, and a day for the tithing of my people; for he that is tithed shall not be burned at his coming.

Church: lds scriptures provident games pearls kzion shiblon film chancellor gateway cumorah byutv happiness nephi
Zope: freezope org com zen labs newbies zettai warnes
Python: home pyzine daily icanprogram
Genealogy: cyndi
Weblogs: jeffrey paul jon joel another-shane guido barry jeremy windley chrism zac
News: quakes lwn dc weather deseret zeitgeist softwarelivre
Zaurus: software developer
Tech: tango spintronics thin
Semantic: aaron sean
Reference: css rdf html4 javascript geckodom iecss emacs phrases acronyms
Reverse: advogato slashdot
Misc: gimp-savvy directory soda jokes shouldexist pdphoto