Skip to content

deprecate support for running EasyBuild with Python < 3.9 #4966

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions easybuild/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading