Skip to content

Commit 8dfbd25

Browse files
committed
Fix Python 2.6 compatibility and add CMAKE_PREFIX_PATH to keys_requiring_files
1 parent 0aea9a4 commit 8dfbd25

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
@@ -1293,7 +1293,8 @@ def make_module_req(self):
12931293
lines.append(self.module_generator.comment(note))
12941294

12951295
# for these environment variables, the corresponding subdirectory must include at least one file
1296-
keys_requiring_files = {'CPATH', 'LD_LIBRARY_PATH', 'LIBRARY_PATH', 'PATH', 'CMAKE_LIBRARY_PATH'}
1296+
keys_requiring_files = set(('PATH', 'LD_LIBRARY_PATH', 'LIBRARY_PATH', 'CPATH',
1297+
'CMAKE_PREFIX_PATH', 'CMAKE_LIBRARY_PATH'))
12971298

12981299
for key, reqs in sorted(requirements.items()):
12991300
if isinstance(reqs, string_type):

0 commit comments

Comments
 (0)