Re: Postgresql & Python 2 - Mailing list pgsql-general

From teg@redhat.com (Trond Eivind Glomsrød)
Subject Re: Postgresql & Python 2
Date
Msg-id xuyg0c0n9h4.fsf@halden.devel.redhat.com
Whole thread Raw
In response to Postgresql & Python 2  (Keith F Irwin <kirwin14@home.com>)
Responses Re: Postgresql & Python 2  (Keith F Irwin <kirwin14@home.com>)
List pgsql-general
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.

pgsql-general by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: [PATCH] To remove EXTEND INDEX
Next
From: Ryan Mahoney
Date:
Subject: Re: How Postgresql Compares For Query And Load Operations