Skip to content

Commit 8ba55f6

Browse files
committed
drop support for Python 2.6
1 parent 9b22728 commit 8ba55f6

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

easybuild/tools/systemtools.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,17 +1032,9 @@ def check_python_version():
10321032
python_ver = '%d.%d' % (python_maj_ver, python_min_ver)
10331033
_log.info("Found Python version %s", python_ver)
10341034

1035-
silence_deprecation_warnings = build_option('silence_deprecation_warnings') or []
1036-
10371035
if python_maj_ver == 2:
1038-
if python_min_ver < 6:
1039-
raise EasyBuildError("Python 2.6 or higher is required when using Python 2, found Python %s", python_ver)
1040-
elif python_min_ver == 6:
1041-
depr_msg = "Running EasyBuild with Python 2.6 is deprecated"
1042-
if 'Python26' in silence_deprecation_warnings:
1043-
_log.warning(depr_msg)
1044-
else:
1045-
_log.deprecated(depr_msg, '5.0')
1036+
if python_min_ver < 7:
1037+
raise EasyBuildError("Python 2.7 is required when using Python 2, found Python %s", python_ver)
10461038
else:
10471039
_log.info("Running EasyBuild with Python 2 (version %s)", python_ver)
10481040

0 commit comments

Comments
 (0)