Skip to content

Commit a064006

Browse files
committed
Fix check for Python runtime dep
1 parent fb51411 commit a064006

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

easybuild/framework/easyblock.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,8 @@ def make_module_extra(self, altroot=None, altversion=None):
14511451
for path in glob.glob(f'{self.installdir}/lib64/python*/site-packages')
14521452
if re.match(self.installdir + r'/lib64/python\d+\.\d+/site-packages', path)]
14531453

1454-
use_ebpythonprefixes = 'Python' in self.cfg.dependencies(runtime_only=True) and \
1454+
runtime_deps = [dep['name'] for dep in self.cfg.dependencies(runtime_only=True)]
1455+
use_ebpythonprefixes = 'Python' in runtime_deps and \
14551456
build_option('prefer_ebpythonprefixes') and self.cfg['prefer_ebpythonprefixes']
14561457

14571458
if python_paths:

0 commit comments

Comments
 (0)