Re: x86_64 configure problem - Mailing list pgsql-hackers

From Joe Conway
Subject Re: x86_64 configure problem
Date
Msg-id 4140BD65.2090906@joeconway.com
Whole thread Raw
In response to Re: x86_64 configure problem  (James William Pye <flaw@rhid.com>)
Responses Re: x86_64 configure problem  (Gaetano Mendola <mendola@bigfoot.com>)
List pgsql-hackers
James William Pye wrote:
> Looking at get_python_lib(), I'm not so sure that I'm correct:
>

It does seem to work for me:

# 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')"
/usr/lib64/python2.3/config

Any other proposals? If not, any objections to the attached patch?

Joe
Index: config/python.m4
===================================================================
RCS file: /cvsroot/pgsql-server/config/python.m4,v
retrieving revision 1.7
diff -c -r1.7 python.m4
*** config/python.m4    29 Nov 2003 19:51:17 -0000    1.7
--- config/python.m4    9 Sep 2004 20:28:14 -0000
***************
*** 25,31 ****
  python_version=`${PYTHON} -c "import sys; print sys.version[[:3]]"`
  python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
  python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
! python_configdir="${python_execprefix}/lib/python${python_version}/config"
  python_includespec="-I${python_prefix}/include/python${python_version}"
  if test "$python_prefix" != "$python_execprefix"; then
    python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
--- 25,31 ----
  python_version=`${PYTHON} -c "import sys; print sys.version[[:3]]"`
  python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
  python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
! 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')"`
  python_includespec="-I${python_prefix}/include/python${python_version}"
  if test "$python_prefix" != "$python_execprefix"; then
    python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"

pgsql-hackers by date:

Previous
From: James William Pye
Date:
Subject: Re: x86_64 configure problem
Next
From: Murat Kantarcioglu
Date:
Subject: Supporting Encryption in Postgresql