Skip to content
Merged
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
15 changes: 15 additions & 0 deletions easybuild/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,21 @@
_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"
]
# only print the warning if we're not running in GitHub Actions
if os.getenv('GITHUB_ACTIONS') != 'true':
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