[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-build-common] 01/02: check python version
From: |
gnunet |
Subject: |
[taler-build-common] 01/02: check python version |
Date: |
Mon, 30 Mar 2020 09:18:15 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository build-common.
commit c4a6a98ed47a1a26083097ab3d74eb216169265a
Author: Florian Dold <address@hidden>
AuthorDate: Mon Mar 30 12:16:54 2020 +0530
check python version
---
talerbuildconfig.py | 7 +++++++
1 file changed, 7 insertions(+)
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
--
To stop receiving notification emails like this one, please contact
address@hidden.