|
|
/ 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.
Comments
(0)
