Skip to content

Commit ef6252a

Browse files
committed
deprecate support for running EasyBuild with Python < 3.9
1 parent c5019c1 commit ef6252a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

easybuild/main.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@
9090
_log = None
9191

9292

93+
if sys.version_info < (3, 100):
94+
full_py_ver = '.'.join(str(x) for x in sys.version_info[:3])
95+
warning_lines = [
96+
"\033[1;33m"
97+
"WARNING: Running EasyBuild with Python < 3.9 is deprecated (you are using Python %s)" % full_py_ver,
98+
'',
99+
"You should use a more recent Python version to run EasyBuild with,",
100+
"see https://docs.easybuild.io/installation/#more_pip_env_EB_PYTHON for more information."
101+
"\033[0m"
102+
]
103+
sys.stderr.write('\n' + '\n'.join(warning_lines) + '\n\n')
104+
105+
93106
def find_easyconfigs_by_specs(build_specs, robot_path, try_to_generate, testing=False):
94107
"""Find easyconfigs by build specifications."""
95108
generated, ec_file = obtain_ec_for(build_specs, robot_path, None)

0 commit comments

Comments
 (0)