Detect pep8 for both python 2 and python 3 and show version

This commit is contained in:
William S Fulton 2016-12-11 21:44:05 +00:00
commit bdad87a242

View file

@ -886,7 +886,15 @@ else
AC_SUBST(PY3LIB)
AC_SUBST(PY3LINK)
AC_SUBST(PYTHON3DYNAMICLINKING)
fi
if test -n "$PYINCLUDE" || test -n "$PY3INCLUDE" ; then
AC_CHECK_PROGS(PEP8, pep8)
if test -n "$PEP8"; then
AC_MSG_CHECKING(pep8 version)
pep8_version=`$PEP8 --version 2>/dev/null`
AC_MSG_RESULT($pep8_version)
fi
fi
#----------------------------------------------------------------