[Pythonmac-SIG] Multiple version of the same module

Pierre-Alain Dorange pdorange at mac.com
Sun Jan 25 16:59:02 CET 2009


How to manage a module with several versions on MacOS X ?

My modules are installed in :
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pa
ckages/"

But for some modules i need several version (stable 1.8.1 and test 1.9.0
for example : for pygame here).

I've installed the stableone from source and i go into a
"pygame-1.8.0release-py2.5-macosx-10.3-i386.egg" directory.

I just install the 1.9 (for test) and it go into "pygame" directory

So now  i got 2 versions of pygame in the site-packages dir...

When i import "pygame" from python, the 1.8.0 is imported only and 1.9.0
is complely ignored... How do python choose from several package ? Do
package register them elsewhere ?
I don't know how to test (temporaly) the 1.9, but alsobe able to go back
easily to 18.8 after ?

Any clue ?


-- 
Pierre-Alain Dorange
<http://microwar.sourceforge.net/>



More information about the Pythonmac-SIG mailing list