summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-09-13 20:04:42 +0200
committerGitHub <noreply@github.com>2021-09-13 11:04:42 -0700
commite9f1cfdaaf0638d5f7bc26a2af7e757ec2f45e96 (patch)
tree870f94ce2f4424145fc911276aafb0c582febd7c /var
parent060582a21d3ebabf5d6b1eab829638e0865c8ba5 (diff)
downloadspack-e9f1cfdaaf0638d5f7bc26a2af7e757ec2f45e96.tar.gz
spack-e9f1cfdaaf0638d5f7bc26a2af7e757ec2f45e96.tar.bz2
spack-e9f1cfdaaf0638d5f7bc26a2af7e757ec2f45e96.tar.xz
spack-e9f1cfdaaf0638d5f7bc26a2af7e757ec2f45e96.zip
Avoid hidden circular dependencies in spack.architecture (#25873)
* Refactor platform etc. to avoid circular dependencies All the base classes in spack.architecture have been moved to the corresponding specialized subpackages, e.g. Platform is now defined within spack.platforms. This resolves a circular dependency where spack.architecture was both: - Defining the base classes for spack.platforms, etc. - Collecting derived classes from spack.platforms, etc. Now it dopes only the latter. * Move a few platform related functions to "spack.platforms" * Removed spack.architecture.sys_type() * Fixup for docs * Rename Python modules according to review
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/pmix/package.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/pmix/package.py b/var/spack/repos/builtin/packages/pmix/package.py
index aec064505d..cc6099d41b 100644
--- a/var/spack/repos/builtin/packages/pmix/package.py
+++ b/var/spack/repos/builtin/packages/pmix/package.py
@@ -2,11 +2,8 @@
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
-
-
import os
-import spack.architecture
from spack import *
@@ -111,8 +108,8 @@ class Pmix(AutotoolsPackage):
# Versions < 2.1.1 have a bug in the test code that *sometimes*
# causes problems on strict alignment architectures such as
# aarch64. Work-around is to just not build the test code.
- if 'aarch64' in spack.architecture.sys_type() and \
- self.spec.version < Version('2.1.1'):
+ if (self.spec.satisfies('target=aarch64:') and
+ self.spec.version < Version('2.1.1')):
config_args.append('--without-tests-examples')
# Versions >= 3.0 also use hwloc