Skip to content

Commit b76b295

Browse files
committed
Fix for Python<3.10
1 parent f136db2 commit b76b295

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

easybuild/tools/entrypoints.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def get_group_entrypoints(group: str) -> Set[EntryPoint]:
3232
msg = "Python importlib.metadata requires Python >= 3.8"
3333
_log.warning(msg)
3434
raise EasyBuildError(msg)
35-
return set(ep for ep in entry_points(group=group))
35+
# Can't use the group keyword argument in entry_points() for Python < 3.10
36+
return set(ep for ep in entry_points() if ep.group == group)
3637

3738

3839
# EASYCONFIG_ENTRYPOINT = "easybuild.easyconfig"

0 commit comments

Comments
 (0)