Whamcloud - gitweb
EX-9611 lipe: ignore pylint warnings
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 16 Apr 2024 21:34:14 +0000 (15:34 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 1 May 2024 22:30:08 +0000 (22:30 +0000)
The Python-based lipe code is deprecated, but fails during
building because of newer pylint warnings.  Ignore errors
from pylint during building until someone fixes them.

Make the installation of pylint optional to simplify builds.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ibd94f6ef5ef69b1fd597f40bbecca6e3c3fb8f02
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54861
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Feng Lei <flei@whamcloud.com>
lipe/configure.ac
lipe/pybuild/Makefile.am
lipe/pylipe/Makefile.am

index 3851f00..d195d25 100644 (file)
@@ -165,7 +165,7 @@ fi
 # ------- check for pylint --------
 AC_CHECK_PROGS([PYLINT], [pylint-3], [])
 if test "x$PYLINT" = "x"; then
-       AC_MSG_ERROR([pylint-3 is needed to check python coding style. Install pylint please.])
+       AC_MSG_WARN([pylint-3 is needed to check python coding style. Install pylint please.])
 fi
 
 # ------- check for libssh --------
index 51eccf6..4b4af0f 100644 (file)
@@ -10,7 +10,7 @@ PYTHON_CHECKS = $(PYTHON_FILES:%=%.python_checked)
 CHECKS = $(PYTHON_CHECKS)
 
 %.python_checked: % ../.pylintrc
-       PYLINTRC=../.pylintrc $(PYLINT) --disable=I $<
+       -test -z "$(PYLINT)" || PYLINTRC=../.pylintrc $(PYLINT) --disable=I $<
        touch $@
 
 check_clean-local:
index 3bb5b3e..aa8ffd0 100644 (file)
@@ -3,7 +3,7 @@ PYTHON_CHECKS = $(PYTHON_FILES:%=%.python_checked)
 CHECKS = $(PYTHON_CHECKS)
 
 %.python_checked: % ../.pylintrc
-       PYLINTRC=../.pylintrc $(PYLINT) --disable=I $<
+       -test -z "$(PYLINT)" || PYLINTRC=../.pylintrc $(PYLINT) --disable=I $<
        touch $@
 
 check_clean-local: