summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/spack b/bin/spack
index 0a6d808342..8386adaa37 100755
--- a/bin/spack
+++ b/bin/spack
@@ -1,7 +1,9 @@
-#!/usr/bin/env python2.7
+#!/usr/bin/env python
+import sys
+if not sys.version_info[:2] >= (2,7):
+ sys.exit("Spack requires Python 2.7. Version was %s." % sys.version_info)
import os
-import sys
import argparse
# Find spack's location and its prefix.