Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configure.ac: fall back to pylint if pylint3 not found
Pylint has dropped Py2 support upstream[1], so Pylint versions after 2.0 effectively only support Python 3. Debian shipped with dual pylint versions in Buster: 1.9 as plain `pylint` for checking Python 2 code, and 2.2.2 as `pylint3' for checking Python 3 code. On Debian Sid however, as of today, there is only one `pylint` package, offering `/usr/bin/pylint' which is Python-3-only, so our current strategy of looking for pylint3 won't work. I expect most distributions will end up calling pylint simply `pylint' (as Debian Bullseye does) and only support Python 3. Fix this by checking for `pylint3', and then for `pylint' if the former was not found. In case we end up `pylint', we also need to check that this is not some ancient 1.x version possibly running on/supporting only Python 2. [1] pylint-dev/pylint#1763 Signed-off-by: Apollon Oikonomopoulos <[email protected]>
- Loading branch information