File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1378,7 +1378,7 @@ def make_module_req(self):
13781378 else :
13791379 # Expand globs but only if the string is non-empty
13801380 # empty string is a valid value here (i.e. to prepend the installation prefix, cfr $CUDA_HOME)
1381- paths = sorted ( sum ((glob .glob (path ) if path else [path ] for path in reqs ), []) ) # sum flattens to list
1381+ paths = sum ((glob .glob (path ) if path else [path ] for path in reqs ), []) # sum flattens to list
13821382
13831383 # If lib64 is just a symlink to lib we fixup the paths to avoid duplicates
13841384 lib64_is_symlink = (all (os .path .isdir (path ) for path in ['lib' , 'lib64' ])
@@ -1396,7 +1396,7 @@ def make_module_req(self):
13961396 self .log .info ("Fixed symlink lib64 in paths for %s: %s -> %s" , key , paths , fixed_paths )
13971397 paths = fixed_paths
13981398 # Use a set to remove duplicates, e.g. by having lib64 and lib which get fixed to lib and lib above
1399- paths = sorted ( set (paths ) )
1399+ paths = set (paths )
14001400 if key in keys_requiring_files :
14011401 # only retain paths that contain at least one file
14021402 retained_paths = [
You can’t perform that action at this time.
0 commit comments