diff options
author | Mario Melara <maamelara@gmail.com> | 2015-10-21 11:09:05 -0700 |
---|---|---|
committer | Mario Melara <maamelara@gmail.com> | 2015-10-21 11:09:05 -0700 |
commit | 9b387e7682c22b74661e3363442adcfb569d8680 (patch) | |
tree | 9a5bcaa30f7cbac4a727504fcc8c6cb93f4a7b14 /lib | |
parent | c31da9bc8f10c3a74b3bf26c2dbac9a13c073eba (diff) | |
download | spack-9b387e7682c22b74661e3363442adcfb569d8680.tar.gz spack-9b387e7682c22b74661e3363442adcfb569d8680.tar.bz2 spack-9b387e7682c22b74661e3363442adcfb569d8680.tar.xz spack-9b387e7682c22b74661e3363442adcfb569d8680.zip |
Added strategy method in init
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/architecture.py | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/lib/spack/spack/architecture.py b/lib/spack/spack/architecture.py index 8460b0de1e..3968b82124 100644 --- a/lib/spack/spack/architecture.py +++ b/lib/spack/spack/architecture.py @@ -57,18 +57,13 @@ class Architecture(object): back = None defaults to None. Should be the back-end architecture of the machine If no arguments are given it will return an empty dictionary + Uses the _add_compiler_strategy(front, back) to create the dictionary """ - _names = [] - _names.append(front) - _names.append(back) - - def _add_compiler_strategy(names): - """ Create a dictionary of {'arch-name': 'strategy'} - This will tell Spack whether to look in the $PATH - or $MODULES location for compilers - Else it will return No Strategy - """ - #TODO: Look for other strategies + + def _add_compiler_strategy(front,back): + names = [] + names.append(front) + names.append(back) d = {} for n in names: if n: @@ -80,7 +75,8 @@ class Architecture(object): d[n] = 'No Strategy' return d - self.arch_dict = _add_compiler_strategy(_names) + self.arch_dict = _add_compiler_strategy(front, back) + def get_sys_type_from_spack_globals(): """Return the SYS_TYPE from spack globals, or None if it isn't set.""" |