From 8b47e7be2f37480a84795810e9a77d23f762678e Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Thu, 5 Sep 2024 16:33:28 +0200 Subject: [PATCH] Fix https://github.com/easybuilders/easybuild-easyblocks/pull/3430/files#r1745639292 --- easybuild/easyblocks/generic/pythonbundle.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/easybuild/easyblocks/generic/pythonbundle.py b/easybuild/easyblocks/generic/pythonbundle.py index 6a3c533062..17287d17bb 100644 --- a/easybuild/easyblocks/generic/pythonbundle.py +++ b/easybuild/easyblocks/generic/pythonbundle.py @@ -91,6 +91,8 @@ def prepare_step(self, *args, **kwargs): # when system Python is used, the first 'python' command in $PATH will not be $EBROOTPYTHON/bin/python, # since $EBROOTPYTHON is set to just 'Python' in that case # (see handling of allow_system_deps in EasyBlock.prepare_step) + req_py_majver = None + req_py_minver = None if which('python') == os.path.join(python_root, 'bin', 'python'): # if we're using a proper Python dependency, let det_pylibdir use 'python' like it does by default python_cmd = None