summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2016-06-15 11:01:18 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2016-06-20 12:24:45 -0500
commitbe407f531e0589dca82a6d5c7c52a59b5e0a8a3b (patch)
tree7c753d53e8a7640c8ac7f903b439b4189c6ff857 /lib
parent28b2e36230625a26868122b15c18253192b9ba1d (diff)
downloadspack-be407f531e0589dca82a6d5c7c52a59b5e0a8a3b.tar.gz
spack-be407f531e0589dca82a6d5c7c52a59b5e0a8a3b.tar.bz2
spack-be407f531e0589dca82a6d5c7c52a59b5e0a8a3b.tar.xz
spack-be407f531e0589dca82a6d5c7c52a59b5e0a8a3b.zip
Move around extension logic
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/create.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/cmd/create.py b/lib/spack/spack/cmd/create.py
index 2d3cfbb9ca..8cbb367f86 100644
--- a/lib/spack/spack/cmd/create.py
+++ b/lib/spack/spack/cmd/create.py
@@ -214,6 +214,9 @@ class ConfigureGuesser(object):
self.build_system = build_system
+ # Set the appropriate default installation instructions
+ self.install = installDict[build_system]
+
# Set any necessary extensions for Python and R
extensions = ''
if build_system in ['python', 'R']:
@@ -221,9 +224,6 @@ class ConfigureGuesser(object):
self.extends = extensions
- # Set the appropriate default installation instructions
- self.install = installDict[build_system]
-
def guess_name_and_version(url, args):
# Try to deduce name and version of the new package from the URL