Esempio 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()]
Esempio n. 2
0
def supported_compilers():
    return [c for c in list_modules(spack.compilers_path)]
Esempio n. 3
0
def all_package_names():
    """Generator function for all packages."""
    for module in list_modules(spack.packages_path):
        yield module