7.4 Python configure hosed

From: Stephen Robert Norris <srn(at)commsecure(dot)com(dot)au>
To: pgsql-general(at)postgresql(dot)org
Subject: 7.4 Python configure hosed
Date: 2003-11-23 23:39:48
Message-ID: 1069630787.1930.6.camel@ws12.commsecure.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

There's a line in config/python.m4 which says:

python_libpath=`${PYTHON} -c "import sys; print sys.path[[1]][[5:]]"`

I think what it's trying to do is cut "/usr/" off the front of the path.
However, if PYTHONPATH is set, or for example, python is installed in
/usr/local/, or if there's a site.py file in the lib directory this
produces the incorrect path (e.g. consider PYTHONPATH=/home/srn/lib -
the line produces /srn/lib).

It's a bit of a pain to have to unset PYTHONPATH. It'd be very nasty if
python isn't installed in /usr/.

Stephen

Browse pgsql-general by date

  From Date Subject
Next Message Ben 2003-11-24 00:36:54 Re: array iteration?
Previous Message Matthew 2003-11-23 22:36:53 Re: Export CSV from psql