Skip to content

Commit

Permalink
More clear error message for pythonbundle too
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Sep 3, 2024
1 parent fa64b34 commit 9cbe0a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion easybuild/easyblocks/generic/pythonbundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,13 @@ def prepare_step(self, *args, **kwargs):
if python_cmd:
self.log.info("Python command being used: %s", python_cmd)
else:
raise EasyBuildError("Failed to pick Python command to use")
if req_py_majver is not None or req_py_minver is not None:
raise EasyBuildError(
"Failed to pick python command that satisfies requirements in the EasyConfigs "
"(req_py_majver = %s, req_py_minver = %s)", req_py_majver, req_py_minver
)
else:
raise EasyBuildError("Failed to pick Python command to use")

if python_cmd:
self.all_pylibdirs = get_pylibdirs(python_cmd=python_cmd)
Expand Down

0 comments on commit 9cbe0a9

Please sign in to comment.