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.
This commit is contained in:
parent
84c2eed13f
commit
5e77b2498a
2 changed files with 10 additions and 2 deletions
|
|
@ -1,3 +1,10 @@
|
||||||
|
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>
|
2012-02-04 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
* HACKING: Minor updates and corrections.
|
* HACKING: Minor updates and corrections.
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,6 @@ AC_DEFUN([adl_CHECK_PYTHON],
|
||||||
[AM_PATH_PYTHON([2.0])
|
[AM_PATH_PYTHON([2.0])
|
||||||
AC_CACHE_CHECK([for $am_display_PYTHON includes directory],
|
AC_CACHE_CHECK([for $am_display_PYTHON includes directory],
|
||||||
[adl_cv_python_inc],
|
[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])])
|
AC_SUBST([PYTHONINC], [$adl_cv_python_inc])])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue