Re: x86_64 configure problem - Mailing list pgsql-hackers

From James William Pye
Subject Re: x86_64 configure problem
Date
Msg-id 1094758132.487.107.camel@localhost
Whole thread Raw
In response to x86_64 configure problem  (Joe Conway <mail@joeconway.com>)
Responses Re: x86_64 configure problem  (James William Pye <flaw@rhid.com>)
List pgsql-hackers
On Thu, 2004-09-09 at 11:17, Joe Conway wrote:
> On an x86_64 machine I'm finding that I cannot configure --with-python
> without the attached patch. Undoubtedly there is a better way to fix
> this -- any suggestions?

python_configdir=`${PYTHON} -c "from distutils.sysconfig import
get_python_lib as f; import os; print os.path.join(f(plat_specific=1,
standard_lib=1),'config')"`

That should work, regardless of the lib directory that Python is
installed to.
(at least it works on my system):

flaw@void:~ % py -c "from distutils.sysconfig import get_python_lib as
f; import os; print
os.path.join(f(plat_specific=1,standard_lib=1),'config')"
/usr/local/lib/python2.3/config

--
Regards,       James William Pye

pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: x86_64 configure problem
Next
From: "Marc G. Fournier"
Date:
Subject: tablespace question ... pg vs oracle