diff --git a/easybuild/main.py b/easybuild/main.py index 2dee1c8374..778d3913c0 100755 --- a/easybuild/main.py +++ b/easybuild/main.py @@ -90,6 +90,19 @@ _log = None +if sys.version_info < (3, 9): + full_py_ver = '.'.join(str(x) for x in sys.version_info[:3]) + warning_lines = [ + "\033[1;33m" + "WARNING: Running EasyBuild with Python < 3.9 is deprecated (you are using Python %s)" % full_py_ver, + '', + "You should use a more recent Python version to run EasyBuild with,", + "see https://docs.easybuild.io/installation/#more_pip_env_EB_PYTHON for more information." + "\033[0m" + ] + sys.stderr.write('\n' + '\n'.join(warning_lines) + '\n\n') + + def find_easyconfigs_by_specs(build_specs, robot_path, try_to_generate, testing=False): """Find easyconfigs by build specifications.""" generated, ec_file = obtain_ec_for(build_specs, robot_path, None)