Commit 5e77b249 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz

Fix computation of PYTHONINC for Python 3.

* m4/pypath.m4: The print syntax changed in Python 3, so use
sys.stdout.write for compatibility with all versions.
parent 84c2eed1
2012-02-24 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix computation of PYTHONINC for Python 3.
* m4/pypath.m4: The print syntax changed in Python 3, so use
sys.stdout.write for compatibility with all versions.
2012-02-04 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* HACKING: Minor updates and corrections.
......
AC_DEFUN([adl_CHECK_PYTHON],
AC_DEFUN([adl_CHECK_PYTHON],
[AM_PATH_PYTHON([2.0])
AC_CACHE_CHECK([for $am_display_PYTHON includes directory],
[adl_cv_python_inc],
[adl_cv_python_inc=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_inc()" 2>/dev/null`])
[adl_cv_python_inc=`$PYTHON -c "import sys; from distutils import sysconfig;]
[sys.stdout.write(sysconfig.get_python_inc())" 2>/dev/null`])
AC_SUBST([PYTHONINC], [$adl_cv_python_inc])])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment