diff --git a/setup.py b/setup.py index 9061546a..eca2c4d2 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ def main(): - if float(sys.version[:3])<3.6: + if sys.version_info < (3,6): sys.stderr.write("CRITICAL: Python version must >= 3.6!\n") sys.exit(1)