Keith F Irwin <kirwin14@home.com> writes:
> Kind of an odd issue, I think....
>
> I compiled the source rpm on my redhat 7.1 system and then installed the
> resulting RPMS (including the python modules). Worked. No problems.
>
> But redhat 7.1 comes stock with python 1.5.2. For various reasons, I've
> upgraded to Python 2.1, which DOESN'T replace python 1.5, but, rather,
> installs the new version along side. In other words:
>
> /usr/lib/python1.5
> /usr/lib/python2
>
> The postgres drivers are in /usr/lib/python1.5/site-packages.
>
> Let's suppose I want to delete python1.5. If a reinstall the
> posgres-python rpm, it'll put 'em back in /usr/lib/python1.5. How do I
> get them into the python2 directory?
Don't move them - python 1.5 and python 2 aren't binary compatible.
What you can do, is to hardcode the pyver variable on top of the file.
--
Trond Eivind Glomsrød
Red Hat, Inc.