Re: Postgresql & Python 2

From: teg(at)redhat(dot)com (Trond Eivind =?iso-8859-1?q?Glomsr=F8d?=)
To: Keith F Irwin <kirwin14(at)home(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgresql & Python 2
Date: 2001-07-13 15:18:31
Message-ID: xuyg0c0n9h4.fsf@halden.devel.redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Keith F Irwin <kirwin14(at)home(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Keith F Irwin 2001-07-13 15:51:10 Re: Postgresql & Python 2
Previous Message Thomas Lockhart 2001-07-13 15:06:09 Re: [PATCH] To remove EXTEND INDEX