Exemplo n.º 1
0
    def setUpClass(cls):
        # Use a different packages directory for these tests.  We want to use
        # mocked up packages that don't interfere with the real ones.
        cls.real_packages_path = spack.packages_path
        spack.packages_path = mock_packages_path

        # First time through, record original relationships bt/w packages
        global original_deps
        original_deps = {}
        for name in list_modules(mock_packages_path):
            pkg = packages.get(name)
            original_deps[name] = [
                spec for spec in pkg.dependencies.values()]
Exemplo n.º 2
0
def supported_compilers():
    return [c for c in list_modules(spack.compilers_path)]
Exemplo n.º 3
0
def all_package_names():
    """Generator function for all packages."""
    for module in list_modules(spack.packages_path):
        yield module