Skip to content

Commit dd17e4e

Browse files
committed
Switch to more reliable way of checking for direct dependencies.
1 parent c74f057 commit dd17e4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/framework/easyblock.py

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

1437-
use_ebpythonprefixes = get_software_root('Python') and build_option('prefer_ebpythonprefixes') and \
1438-
self.cfg['prefer_ebpythonprefixes']
1437+
use_ebpythonprefixes = 'Python' in self.dependencies(runtime_only=True) and \
1438+
build_option('prefer_ebpythonprefixes') and self.cfg['prefer_ebpythonprefixes']
14391439

14401440
if len(python_paths) > 1 and not use_ebpythonprefixes:
14411441
raise EasyBuildError('Multiple python paths requires EBPYTHONPREFIXES: ' + ', '.join(python_paths))

0 commit comments

Comments
 (0)