Detect pep8 for both python 2 and python 3 and show version
This commit is contained in:
parent
07ebbe84b8
commit
bdad87a242
1 changed files with 8 additions and 0 deletions
|
|
@ -886,7 +886,15 @@ else
|
||||||
AC_SUBST(PY3LIB)
|
AC_SUBST(PY3LIB)
|
||||||
AC_SUBST(PY3LINK)
|
AC_SUBST(PY3LINK)
|
||||||
AC_SUBST(PYTHON3DYNAMICLINKING)
|
AC_SUBST(PYTHON3DYNAMICLINKING)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -n "$PYINCLUDE" || test -n "$PY3INCLUDE" ; then
|
||||||
AC_CHECK_PROGS(PEP8, pep8)
|
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
|
fi
|
||||||
|
|
||||||
#----------------------------------------------------------------
|
#----------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue