diff options
author | Florian Dold <florian@dold.me> | 2020-11-25 14:34:09 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2020-11-25 14:34:09 +0100 |
commit | 47f14fcf1d03d9dad1bae59987488ea05ecd307b (patch) | |
tree | 63c8f32d127900f1dcc94b78832e209c87608c86 /pyvercheck.py | |
parent | 31081f44232d0233629ad3a4d398322da9958ed4 (diff) | |
download | build-common-47f14fcf1d03d9dad1bae59987488ea05ecd307b.tar.gz build-common-47f14fcf1d03d9dad1bae59987488ea05ecd307b.tar.bz2 build-common-47f14fcf1d03d9dad1bae59987488ea05ecd307b.zip |
be more verbose
Diffstat (limited to 'pyvercheck.py')
-rw-r--r-- | pyvercheck.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pyvercheck.py b/pyvercheck.py index 98e620b..02e45b5 100644 --- a/pyvercheck.py +++ b/pyvercheck.py @@ -1,7 +1,12 @@ # This file is placed in the public domain. +# Detect the Python version in a portable way. +# + import sys +sys.stderr.write("info: running with python " + str(sys.version_info) + "\n") + if sys.version_info.major < 3 or sys.version_info.minor < 7: sys.stderr.write("error: python>=3.7 must be available as the python3 executable\n") sys.exit(1) |