Skip to content

Commit 8c0e500

Browse files
committed
use more direct way to filter out class names for software-specific easyblocks based on 'EB_' prefix
1 parent 72e18eb commit 8c0e500

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/framework/easyconfig/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
from easybuild.tools.build_log import EasyBuildError, print_error, print_msg, print_warning
5959
from easybuild.tools.config import build_option
6060
from easybuild.tools.environment import restore_env
61-
from easybuild.tools.filetools import find_easyconfigs, is_generic_easyblock, is_patch_file, locate_files
61+
from easybuild.tools.filetools import EASYBLOCK_CLASS_PREFIX, find_easyconfigs, is_patch_file, locate_files
6262
from easybuild.tools.filetools import read_file, resolve_path, which, write_file
6363
from easybuild.tools.github import GITHUB_EASYCONFIGS_REPO
6464
from easybuild.tools.github import det_pr_labels, det_pr_title, download_repo, fetch_easyconfigs_from_commit
@@ -795,7 +795,7 @@ def avail_easyblocks():
795795
else:
796796
# If there is exactly one software specific easyblock we use that
797797
sw_specific_class_names = [name for name in class_names
798-
if not is_generic_easyblock(name)]
798+
if name.startswith(EASYBLOCK_CLASS_PREFIX)]
799799
if len(sw_specific_class_names) == 1:
800800
class_names = sw_specific_class_names
801801
if len(class_names) == 1:

0 commit comments

Comments
 (0)