summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-08-20 09:30:40 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2014-08-20 09:30:40 -0700
commit8cc2298181140634cb0384026480da46c19dbcad (patch)
tree712cdec0eb7f5a267b11128bd9e9eab0a96a948a /bin
parent42e27d04c17b8f011a1882bb45f899187c8ffa59 (diff)
parent48d5281e3a9142ded1e67983a22dce3f5777e1b4 (diff)
downloadspack-8cc2298181140634cb0384026480da46c19dbcad.tar.gz
spack-8cc2298181140634cb0384026480da46c19dbcad.tar.bz2
spack-8cc2298181140634cb0384026480da46c19dbcad.tar.xz
spack-8cc2298181140634cb0384026480da46c19dbcad.zip
Merge branch 'features/python-2.6-compatibility' into develop
- Changed 'import argparse' to 'from external import argparse' in conflicts. Conflicts: lib/spack/spack/cmd/dotkit.py lib/spack/spack/cmd/unuse.py lib/spack/spack/cmd/use.py
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/spack b/bin/spack
index f2b5d1d583..2f74761a78 100755
--- a/bin/spack
+++ b/bin/spack
@@ -24,11 +24,10 @@
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
import sys
-if not sys.version_info[:2] >= (2,7):
- sys.exit("Spack requires Python 2.7. Version was %s." % sys.version_info)
+if not sys.version_info[:2] >= (2,6):
+ sys.exit("Spack requires Python 2.6. Version was %s." % sys.version_info)
import os
-import argparse
# Find spack's location and its prefix.
SPACK_FILE = os.path.realpath(os.path.expanduser(__file__))
@@ -51,6 +50,7 @@ del SPACK_FILE, SPACK_PREFIX, SPACK_LIB_PATH
import llnl.util.tty as tty
import spack
from spack.error import SpackError
+from external import argparse
# Command parsing
parser = argparse.ArgumentParser(