diff options
author | Peter Eisentraut | 2009-12-15 22:59:55 +0000 |
---|---|---|
committer | Peter Eisentraut | 2009-12-15 22:59:55 +0000 |
commit | dd4cd55c15886c46378dc27f44f59a6de8c4d45b (patch) | |
tree | 021133526bdb9db2cb6968f0eecde686d008eb1b /config/python.m4 | |
parent | 21d11e7ee2d9fb47fc06b53f8e54fe07e7f1c18a (diff) |
Python 3 support in PL/Python
Behaves more or less unchanged compared to Python 2, but the new language
variant is called plpython3u. Documentation describing the naming scheme
is included.
Diffstat (limited to 'config/python.m4')
-rw-r--r-- | config/python.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/python.m4 b/config/python.m4 index a3d66435fbd..a84e9437de3 100644 --- a/config/python.m4 +++ b/config/python.m4 @@ -1,7 +1,7 @@ # # Autoconf macros for configuring the build of Python extension modules # -# $PostgreSQL: pgsql/config/python.m4,v 1.16 2009/10/14 21:59:15 petere Exp $ +# $PostgreSQL: pgsql/config/python.m4,v 1.17 2009/12/15 22:59:53 petere Exp $ # # PGAC_PATH_PYTHON @@ -30,10 +30,12 @@ else AC_MSG_ERROR([distutils module not found]) fi AC_MSG_CHECKING([Python configuration directory]) +python_majorversion=`${PYTHON} -c "import sys; print(sys.version[[0]])"` python_version=`${PYTHON} -c "import sys; print(sys.version[[:3]])"` 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=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"` +AC_SUBST(python_majorversion)[]dnl AC_SUBST(python_version)[]dnl AC_SUBST(python_configdir)[]dnl AC_SUBST(python_includespec)[]dnl |