diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-06-27 02:19:08 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-06-27 02:19:08 -0700 |
commit | 305d5698df11b5b34de50852e7c0db42319a4c08 (patch) | |
tree | 56e91ba23921994debee7e6c3a873391c830c01e /var/spack/repos/builtin.mock | |
parent | d89905907577baf09bee5403fb4075415bd862d9 (diff) | |
download | spack-305d5698df11b5b34de50852e7c0db42319a4c08.tar.gz spack-305d5698df11b5b34de50852e7c0db42319a4c08.tar.bz2 spack-305d5698df11b5b34de50852e7c0db42319a4c08.tar.xz spack-305d5698df11b5b34de50852e7c0db42319a4c08.zip |
Rename spack.architecture.sys_type() to spack.architecture.platform()
Diffstat (limited to 'var/spack/repos/builtin.mock')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/multimethod/package.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/var/spack/repos/builtin.mock/packages/multimethod/package.py b/var/spack/repos/builtin.mock/packages/multimethod/package.py index 649afa5945..ca991632dd 100644 --- a/var/spack/repos/builtin.mock/packages/multimethod/package.py +++ b/var/spack/repos/builtin.mock/packages/multimethod/package.py @@ -106,17 +106,11 @@ class Multimethod(Package): # # Make sure we can switch methods on different target # -# for platform_name in ['cray_xc', 'darwin', 'linux']: -# file_path = join_path(spack.platform_path, platform_name) -# platform_mod = imp.load_source('spack.platforms', file_path + '.py') -# cls = getattr(platform_mod, mod_to_class(platform_name)) - -# platform = cls() - platform = spack.architecture.sys_type() + platform = spack.architecture.platform() targets = platform.targets.values() if len(targets) > 1: targets = targets[:-1] - + for target in targets: @when('target='+target.name) def different_by_target(self): |