From 98f935a87f04f6fec943d451a002e582a6a524a6 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Tue, 2 Sep 2025 09:42:14 +0200 Subject: [PATCH] Set required environment variables in Python sanity check --- easybuild/easyblocks/p/python.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/easybuild/easyblocks/p/python.py b/easybuild/easyblocks/p/python.py index 99bb887a33a..9a46391ab95 100644 --- a/easybuild/easyblocks/p/python.py +++ b/easybuild/easyblocks/p/python.py @@ -736,6 +736,9 @@ def sanity_check_step(self): except EasyBuildError as err: raise EasyBuildError("Loading fake module failed: %s", err) + # Set after loading module + set_py_env_vars(self.log) + # global 'pip check' to verify that version requirements are met for Python packages installed as extensions run_pip_check(python_cmd='python')