diff --git a/contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/BUILD b/contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/BUILD index 9ae6c0d6367..aeac07d1acb 100644 --- a/contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/BUILD +++ b/contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/BUILD @@ -7,6 +7,7 @@ python_library( dependencies=[ '3rdparty/python:pep8', '3rdparty/python:pyflakes', + '3rdparty/python:pex', 'src/python/pants/backend/python/targets:python', 'src/python/pants/base:exceptions', 'src/python/pants/option', diff --git a/contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/checker.py b/contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/checker.py index d87546d3c62..5e420647f3f 100644 --- a/contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/checker.py +++ b/contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/checker.py @@ -179,7 +179,7 @@ def execute(self): interpreter = self.context.products.get_data(PythonInterpreter) # Check interpreter is not 'None' for test cases that do not # run the python interpreter selection task. - if interpreter and interpreter.version > (3, 0 ,0): + if interpreter and interpreter.version >= (3, 0 ,0): self.context.log.info('Linting is currently disabled for Python 3 targets.\n ' 'See https://github.com/pantsbuild/pants/issues/5764 for ' 'long-term solution tracking.')