Re: Difficulty using pypgsql rpm

Sean Reifschneider <[email protected]>
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
On Mon, Oct 21, 2002 at 07:05:42AM +0000, Stanley A. Klein wrote:
>BTW, I got pyPgSQL to appear in python2.1/site-packages by a symbolic link
>from where it installs under the rpm as provided.

You can't just symlink the files from a 1.5.2 build into the 2.1/2.2
directories and expect it to work.  You'll need to build a version of
pypgsql for the 2.1 install native.  The .spec file doesn't include any
mechanism for doing that, but if while you build the RPM you make sure
that /usr/bin/python points at the appropriate version, I think it'll do
the right thing for you.

>Also, the rpm dependencies specify python2.  Python 2.1 does not qualify
>under the dependency as stated.  You may want to specify something like
>python >= 2.  Likewise, my python2.1 requires that it be invoked as
>python2.1, not python2.  Is a symbolic link required there?

Note that "python2" is different than "python version 2".  With Red Hat
7.3, if you remove the stock python (1.5.2), it will break the GUI
management tools.  Therefore, I named the Python 2.x packages "python2",
so that they could be installed next to the existing system.

You may want to try picking up the python 2.2 RPMs from www.python.org
(which are the "python2" packages) and using that instead of packages
that install as "python".

Those were the packages I built pyPgSQL with and should work.

Sean
-- 
 I'm one of the leading experts in the field of Data Mimeing.  Unfortunately,
 I'm not allowed to TELL you anything about it.  -- Sean Reifschneider, 1997
Sean Reifschneider, Inimitably Superfluous <[email protected]>
tummy.com, ltd. - Linux Consulting since 1995.  Qmail, Python, SysAdmin


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.