[MacOS] Multiple versions of a module

  • Thread starter Pierre-Alain Dorange
  • Start date
P

Pierre-Alain Dorange

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

All modules are installed in :
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pa
ckages/"
This is the default path for Mac.

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 stable one from source and i go into a
"pygame-1.8.0release-py2.5-macosx-10.3-i386.egg" directory. Nice.

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 "pygam
e" 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 also be able to go
back easily to 18.8 after ?

I do a site._test() and i return my only 1.8.0 module for pygame, 1.9.0
is ignored. The same with

Any clue ?
 
D

Diez B. Roggisch

Pierre-Alain Dorange said:
How to manage a module with several versions on MacOS X ?

All modules are installed in :
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pa
ckages/"
This is the default path for Mac.

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 stable one from source and i go into a
"pygame-1.8.0release-py2.5-macosx-10.3-i386.egg" directory. Nice.

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 "pygam
e" 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 also be able to go
back easily to 18.8 after ?

I do a site._test() and i return my only 1.8.0 module for pygame, 1.9.0
is ignored. The same with

Use the excellent virtualenv-package from Ian Bicking.

http://pypi.python.org/pypi/virtualenv

Nowaday,s nearly everything I develop first gets it's own VE before
anything is installed.

Diez
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,816
Latest member
nipsseyhussle

Latest Threads

Top