Installing Python modules as RPMs when there are 2 interpreters installed!
jepler at unpythonic.net
Tue Mar 4 02:51:23 CET 2003
On Mon, Mar 03, 2003 at 01:26:37PM -0800, John wrote:
> I have a Linux machine (Red Hat 7.2) that has Python 1.5. I installed
> Python 2.2 later. It is problematic to remove 1.5 since quite a few
> tools depend on it. Now I need to install some modules (as RPMS) on
> 2.2 for my work. But they are getting installed on 1.5. How can I
> specify 2.2 as the target.
I think this is the magic incantation:
python2 setup.py bdist_rpm --python=/usr/bin/python2
More information about the Python-list