Fixed distutils module check: debug python builds always print stuff to stderr

This commit is contained in:
Yevgen Muntyan 2006-11-11 21:43:21 -06:00
parent 46376dfcb5
commit 302d9c54eb

View File

@ -74,16 +74,15 @@ AC_DEFUN([_MOO_AC_CHECK_PYTHON_MINGW],[
AC_DEFUN([_MOO_AC_PYTHON_DEVEL],[ AC_DEFUN([_MOO_AC_PYTHON_DEVEL],[
# Check for distutils first # Check for distutils first
AC_MSG_CHECKING([for the distutils Python package]) AC_MSG_CHECKING([for the distutils Python package])
ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` $PYTHON -c "import distutils" 2>/dev/null
if test -z "$ac_distutils_result"; then if test $? -eq 0; then
python_found=yes python_found=yes
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
else else
python_found=no python_found=no
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
AC_MSG_ERROR([cannot import Python module "distutils". AC_MSG_ERROR([cannot import Python module "distutils".
Please check your Python installation. The error was: Please check your Python installation.])
$ac_distutils_result])
fi fi
# Check for Python include path # Check for Python include path