Skip to content
Snippets Groups Projects
Commit e0f31889 authored by Massimiliano Culpo's avatar Massimiliano Culpo
Browse files

spack setup : improved error message

parent fa3f07c0
No related branches found
No related tags found
No related merge requests found
......@@ -148,6 +148,12 @@ def setup(self, args):
spec.concretize()
package = spack.repo.get(spec)
if not isinstance(package, spack.CMakePackage):
tty.die(
'Support for {0} derived packages not yet implemented'.format(
package.build_system_class
)
)
# It's OK if the package is already installed.
......@@ -157,8 +163,4 @@ def setup(self, args):
# TODO: make this an argument, not a global.
spack.do_checksum = False
if not isinstance(package, spack.CMakePackage):
raise RuntimeError(
'Support for {0} not yet implemented'.format(type(package)))
write_spconfig(package)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment