Compare commits

..

2 Commits

Author SHA1 Message Date
Patrick Lipka 1b63ed59b7 Version number adapted 2022-09-22 02:00:08 +02:00
Patrick Lipka aa53023153 v.0.4 - check Python version at startup 2022-09-22 01:58:45 +02:00
2 changed files with 12 additions and 2 deletions

View File

@ -2,6 +2,13 @@ import os
import argparse
import glob
import json
import sys
def check_python_version():
python_version = sys.version_info
if not (python_version.major >= 3 and python_version.minor >= 3):
print("Minimum Python version needed: 3.3.0")
sys.exit(1)
def init():

View File

@ -7,9 +7,12 @@ from lib.shell import get_from_command
from lib.toolchain import get_compiler_version, get_mpi_version, set_toolchain
from lib.sort import sort_libs_by_dependencies
from lib.installer import install_lib
from lib.init import init
from lib.init import init, check_python_version
SCRIPT_VERSION = "v0.3"
SCRIPT_VERSION = "v0.4"
# check if Python >=3.3.0 is used
check_python_version()
# initialization by argparser
arg_namespace, args = init()