fix fullnames
This commit is contained in:
parent
6822db0fe7
commit
ecf882c240
@ -831,13 +831,10 @@ def fullname(cls):
|
|||||||
def fullnames(cls):
|
def fullnames(cls):
|
||||||
"""Fullnames for this package and any packages from which it inherits."""
|
"""Fullnames for this package and any packages from which it inherits."""
|
||||||
fullnames = []
|
fullnames = []
|
||||||
for cls in cls.__mro__:
|
for base in cls.__mro__:
|
||||||
namespace = getattr(cls, "namespace", None)
|
if not base.__module__.startswith(f"{spack.repo.ROOT_PYTHON_NAMESPACE}."):
|
||||||
if namespace:
|
|
||||||
fullnames.append("%s.%s" % (namespace, cls.name))
|
|
||||||
if namespace == "builtin":
|
|
||||||
# builtin packages cannot inherit from other repos
|
|
||||||
break
|
break
|
||||||
|
fullnames.append(base.fullname)
|
||||||
return fullnames
|
return fullnames
|
||||||
|
|
||||||
@classproperty
|
@classproperty
|
||||||
|
Loading…
Reference in New Issue
Block a user