summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-10-23 19:10:07 +0200
committeralalazo <massimiliano.culpo@googlemail.com>2016-10-23 19:10:07 +0200
commite0f3188970f7b5896517b8e879d477d44f73c088 (patch)
tree2dc581be3c00b272429c27147ba1ed6e1c5b1ad5
parentfa3f07c0929ef2beedb3746226d3f826f613e9cc (diff)
downloadspack-e0f3188970f7b5896517b8e879d477d44f73c088.tar.gz
spack-e0f3188970f7b5896517b8e879d477d44f73c088.tar.bz2
spack-e0f3188970f7b5896517b8e879d477d44f73c088.tar.xz
spack-e0f3188970f7b5896517b8e879d477d44f73c088.zip
spack setup : improved error message
-rw-r--r--lib/spack/spack/cmd/setup.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/spack/spack/cmd/setup.py b/lib/spack/spack/cmd/setup.py
index f39a827a8d..50bc031330 100644
--- a/lib/spack/spack/cmd/setup.py
+++ b/lib/spack/spack/cmd/setup.py
@@ -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)