summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-10-21 12:38:43 +0200
committeralalazo <massimiliano.culpo@googlemail.com>2016-10-21 12:38:43 +0200
commit213e3f0860ada9c1f7a5a945d95398c717bfb7aa (patch)
treeb2559492525283e4de531989d4e9ce82d56ad0c4 /bin
parentdd56784d2861d866cc3b6e15a145331297d283f0 (diff)
parent8de143a99440d708e8e22bd63bcad25c483d8ffa (diff)
downloadspack-213e3f0860ada9c1f7a5a945d95398c717bfb7aa.tar.gz
spack-213e3f0860ada9c1f7a5a945d95398c717bfb7aa.tar.bz2
spack-213e3f0860ada9c1f7a5a945d95398c717bfb7aa.tar.xz
spack-213e3f0860ada9c1f7a5a945d95398c717bfb7aa.zip
Merge branch 'develop' of https://github.com/LLNL/spack into features/install_with_phases_rebase
Conflicts: lib/spack/spack/cmd/install.py lib/spack/spack/cmd/setup.py
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack12
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/spack b/bin/spack
index dcc25c5c83..29991c070d 100755
--- a/bin/spack
+++ b/bin/spack
@@ -40,6 +40,16 @@ SPACK_PREFIX = os.path.dirname(os.path.dirname(SPACK_FILE))
# Allow spack libs to be imported in our scripts
SPACK_LIB_PATH = os.path.join(SPACK_PREFIX, "lib", "spack")
sys.path.insert(0, SPACK_LIB_PATH)
+
+# Try to use system YAML if it is available, as it might have libyaml
+# support (for faster loading via C). Load it before anything in
+# lib/spack/external so it will take precedence over Spack's PyYAML.
+try:
+ import yaml
+except ImportError:
+ pass # ignore and use slow yaml
+
+# Add external libs
SPACK_EXTERNAL_LIBS = os.path.join(SPACK_LIB_PATH, "external")
sys.path.insert(0, SPACK_EXTERNAL_LIBS)
@@ -161,7 +171,7 @@ def main():
# If the user asked for it, don't check ssl certs.
if args.insecure:
tty.warn("You asked for --insecure. Will NOT check SSL certificates.")
- spack.curl.add_default_arg('-k')
+ spack.insecure = True
# Try to load the particular command asked for and run it
command = spack.cmd.get_command(args.command.replace('-', '_'))