Skip to content

Commit

Permalink
Use nub instead of set to preserve order
Browse files Browse the repository at this point in the history
  • Loading branch information
mboisson committed Nov 22, 2023
1 parent 95e8c48 commit 3714b8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easybuild/tools/module_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
from easybuild.tools.filetools import convert_name, mkdir, read_file, remove_file, resolve_path, symlink, write_file
from easybuild.tools.modules import ROOT_ENV_VAR_NAME_PREFIX, EnvironmentModulesC, Lmod, modules_tool
from easybuild.tools.py2vs3 import string_type
from easybuild.tools.utilities import get_subclasses, quote_str
from easybuild.tools.utilities import get_subclasses, nub, quote_str


_log = fancylogger.getLogger('module_generator', fname=False)
Expand Down Expand Up @@ -666,7 +666,7 @@ def _generate_help_text(self):
if multi_deps:
compatible_modules_txt = '\n'.join([
"This module is compatible with the following modules, one of each line is required:",
] + ['* %s' % d for d in set(multi_deps)])
] + ['* %s' % d for d in nub(multi_deps)])
lines.extend(self._generate_section("Compatible modules", compatible_modules_txt))

# Extensions (if any)
Expand Down

0 comments on commit 3714b8c

Please sign in to comment.