default python when multiple python installation on the box

J

j_nwb

HI
I have multiple python installations. 2.2, 2.3, 2.4. When I install a
new package (pygtk2) , it always install in python 2.3.
I changed the /usr/bin/python to be 2.4 binary. Still the same behavior.
How does rpms, determine which installation to update ? Is there a
file somewhere ?
I am running in to this on Fedora as well as CenOS.

Thanks
/J
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

j_nwb said:
I have multiple python installations. 2.2, 2.3, 2.4. When I install a
new package (pygtk2) , it always install in python 2.3.
I changed the /usr/bin/python to be 2.4 binary. Still the same behavior.
How does rpms, determine which installation to update ? Is there a
file somewhere ?
I am running in to this on Fedora as well as CenOS.

Not sure what you mean by package: RPM package or distutils package?
If RPM package: binary package or source package?

Binary RPM packages have the Python version compiled into their
extension modules, and you can't change that without recompilation.
In addition, they have the directory and file names hard-coded in
the RPM archive.

Source RPM packages have the Python version coded into their spec
file. You should read the spec file to find out what Python version
it uses.

Distutils packages use the Python version you use to run setup.py,
so you should be able to install either with "python2.4 setup.py",
or get a different Python selected by changing /usr/bin/python.
Since you specifically asked about RPMs, I guess distutils packages
are of no interest to you, though.

Regards,
Martin
 
J

j_nwb

Does not help my immediate situation, but this understanding definitely
helps.
Thanks

/J
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top