def test_architecture_compatibility(target, constraint, expected): assert ABI().architecture_compatible(Spec(target), Spec(constraint)) == expected
def test_compatibility(target, constraint, loose, expected): assert ABI().compatible(Spec(target), Spec(constraint), loose=loose) == expected
#----------------------------------------------------------------------------- # Initialize various data structures & objects at the core of Spack. #----------------------------------------------------------------------------- # Version information spack_version = Version("0.10.0") # Set up the default packages database. try: repo = spack.repository.RepoPath() sys.meta_path.append(repo) except spack.error.SpackError, e: tty.die('while initializing Spack RepoPath:', e.message) # Tests ABI compatibility between packages abi = ABI() # This controls how things are concretized in spack. # Replace it with a subclass if you want different # policies. concretizer = DefaultConcretizer() #----------------------------------------------------------------------------- # config.yaml options #----------------------------------------------------------------------------- _config = spack.config.get_config('config') # Path where downloaded source code is cached cache_path = canonicalize_path( _config.get('source_cache', join_path(var_path, "cache"))) fetch_cache = spack.fetch_strategy.FsCache(cache_path)