diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-03-30 12:16:54 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-03-30 12:16:54 +0530 |
commit | c4a6a98ed47a1a26083097ab3d74eb216169265a (patch) | |
tree | f663a79f37fb03d2cc34137dda841377659cbc28 | |
parent | d81bbfabc2538932f631d3946bd6a9b95182b4f2 (diff) | |
download | build-common-c4a6a98ed47a1a26083097ab3d74eb216169265a.tar.gz build-common-c4a6a98ed47a1a26083097ab3d74eb216169265a.tar.bz2 build-common-c4a6a98ed47a1a26083097ab3d74eb216169265a.zip |
check python version
-rw-r--r-- | talerbuildconfig.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/talerbuildconfig.py b/talerbuildconfig.py index aa03862..e243a19 100644 --- a/talerbuildconfig.py +++ b/talerbuildconfig.py @@ -19,6 +19,13 @@ # # SPDX-License-Identifier: 0BSD +import sys + +if not (sys.version_info.major == 3 and sys.version_info.minor >= 7): + print("This script requires Python 3.7 or higher!") + print("You are using Python {}.{}.".format(sys.version_info.major, sys.version_info.minor)) + sys.exit(1) + from abc import ABC import argparse import os |