Skip to content

Commit

Permalink
Add an exception for python < 3.6.2
Browse files Browse the repository at this point in the history
See #5065 for reasoning
  • Loading branch information
Pierre-Sassoulas committed Oct 17, 2021
1 parent d3b27d8 commit 206c437
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions setup.py
@@ -1,3 +1,18 @@
import sys

from setuptools import setup


class PylintIncompatiblePythonError(Exception):
def __init__(self, major, minor, patch):
super().__init__(
f"The last version compatible with python {major}.{minor}.{patch} "
"is pylint '2.9.3', please install that version manually."
)


version = sys.version_info[:3]
if version < (3, 6, 2):
raise PylintIncompatiblePythonError(*version)

setup()

0 comments on commit 206c437

Please sign in to comment.