Beispiel #1
0
    def from_build_manifest(cls, build_manifest, src_node):
        meta = PackageMetadata.from_build_manifest(build_manifest)
        executables = build_manifest.executables

        file_sections = build_manifest.resolve_paths(src_node)
        sources = list([n.abspath() for n in iter_source_files(file_sections)])

        ret = cls(meta, executables, sources)
        ret.build_manifest = build_manifest
        return ret
Beispiel #2
0
    def from_ipkg(cls, ipkg, src_node):
        meta = PackageMetadata.from_ipkg(ipkg)
        executables = ipkg.executables

        file_sections = ipkg.resolve_paths(src_node)
        sources = list([n.abspath() for n in iter_source_files(file_sections)])

        ret = cls(meta, executables, sources)
        ret.ipkg = ipkg
        return ret
Beispiel #3
0
    def from_ipkg(cls, ipkg):
        meta = PackageMetadata.from_ipkg(ipkg)
        executables = ipkg.executables

        file_sections = ipkg.resolve_paths()
        sources = list(iter_source_files(file_sections))

        ret = cls(meta, executables, sources)
        ret.ipkg = ipkg
        return ret
Beispiel #4
0
    def from_build_manifest(cls, build_manifest, src_node):
        meta = PackageMetadata.from_build_manifest(build_manifest)
        executables = build_manifest.executables

        file_sections = build_manifest.resolve_paths(src_node)
        sources = list([n.abspath() for n in iter_source_files(file_sections)])

        ret = cls(meta, executables, sources)
        ret.build_manifest = build_manifest
        return ret