Skip to content

Commit

Permalink
Updated supported version check to python 3.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Ferrell committed Aug 7, 2023
1 parent 3fcc898 commit 4bfcc27
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/pavilion/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@
"dependencies?")


MIN_SUPPORTED_MINOR_VERSION = 6
SUPPORTED_MAJOR_VERSION = 3

# pylint: disable=broad-except
def main():
"""Setup Pavilion and run a command."""

# Pavilion is compatible with python >= 3.4
if sys.version_info[0] != 3 or sys.version_info[1] < 5:
output.fprint(sys.stderr, "Pavilion requires python 3.5 or higher.", color=output.RED)
if (sys.version_info[0] != SUPPORTED_MAJOR_VERSION
or sys.version_info[1] < MIN_SUPPORTED_MINOR_VERSION):
output.fprint(sys.stderr, "Pavilion requires python 3.6 or higher.", color=output.RED)
sys.exit(-1)

# This has to be done before we initialize plugins
Expand Down

0 comments on commit 4bfcc27

Please sign in to comment.