Skip to content
Snippets Groups Projects
Commit 6d7cc5ff authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Don't use hardcoded name for pylint


Look it up at configure time instead.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent f60d352e
No related branches found
No related tags found
No related merge requests found
......@@ -483,7 +483,8 @@ check-local:
.PHONY: lint
lint: ganeti
pylint $(LINT_OPTS) $(lint_python_code)
@test -n "$(PYLINT)" || { echo 'pylint' not found during configure; exit 1; }
$(PYLINT) $(LINT_OPTS) $(lint_python_code)
# a dist hook rule for catching revision control directories
distcheck-hook:
......
......@@ -153,6 +153,14 @@ then
AC_MSG_WARN([dot (from the graphviz suite) not found, documentation rebuild not possible])
fi
# Check for pylint
AC_ARG_VAR(PYLINT, [pylint path])
AC_PATH_PROG(PYLINT, [pylint], [])
if test -z "$PYLINT"
then
AC_MSG_WARN([pylint not found, checking code will not be possible])
fi
# Check for socat
AC_ARG_VAR(SOCAT, [socat path])
AC_PATH_PROG(SOCAT, [socat], [])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment