def concretize_scope(mutable_config, tmpdir): """Adds a scope for concretization preferences""" tmpdir.ensure_dir('concretize') mutable_config.push_scope( ConfigScope('concretize', str(tmpdir.join('concretize')))) yield mutable_config.pop_scope() spack.repo.path._provider_index = None
def concretize_scope(config, tmpdir): """Adds a scope for concretization preferences""" tmpdir.ensure_dir('concretize') config.push_scope(ConfigScope('concretize', str(tmpdir.join('concretize')))) yield config.pop_scope() spack.package_prefs.PackagePrefs.clear_caches() spack.repo.path._provider_index = None