Re: Postgresql & Python 2
От | teg@redhat.com (Trond Eivind Glomsrød) |
---|---|
Тема | Re: Postgresql & Python 2 |
Дата | |
Msg-id | xuyg0c0n9h4.fsf@halden.devel.redhat.com обсуждение исходный текст |
Ответ на | Postgresql & Python 2 (Keith F Irwin <kirwin14@home.com>) |
Ответы |
Re: Postgresql & Python 2
|
Список | 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 по дате отправления: