コード例 #1
0
ファイル: Reports.py プロジェクト: nexcvon/Nuitka
def writeCompilationReport(report_filename):
    active_modules_info = getModuleInclusionInfos()

    root = TreeXML.Element("nuitka-compilation-report")

    for module in getDoneModules():
        active_module_info = active_modules_info[module]

        root.append(
            TreeXML.Element(
                "module",
                name=module.getFullName(),
                kind=module.__class__.__name__,
                reason=active_module_info.reason,
            ))

    putTextFileContents(filename=report_filename,
                        contents=TreeXML.toString(root))

    general.info("Compilation report in file %r." % report_filename)
コード例 #2
0
ファイル: Reports.py プロジェクト: psydox/Nuitka
def writeCompilationReport(report_filename):
    active_modules_info = getModuleInclusionInfos()

    root = TreeXML.Element("nuitka-compilation-report")

    for module in getDoneModules():
        active_module_info = active_modules_info[module]

        root.append(
            TreeXML.Element(
                "module",
                name=module.getFullName(),
                kind=module.__class__.__name__,
                reason=active_module_info.reason,
            ))

    for included_datafile in getIncludedDataFiles():
        if included_datafile.kind == "data_file":
            root.append(
                TreeXML.Element(
                    "data_file",
                    name=included_datafile.dest_path,
                    source=included_datafile.source_path,
                    reason=included_datafile.reason,
                    tags=",".join(included_datafile.tags),
                ))
        elif included_datafile.kind == "data_blob":
            root.append(
                TreeXML.Element(
                    "data_blob",
                    name=included_datafile.dest_path,
                    reason=included_datafile.reason,
                    tags=",".join(included_datafile.tags),
                ))

    putTextFileContents(filename=report_filename,
                        contents=TreeXML.toString(root))

    general.info("Compilation report in file %r." % report_filename)
コード例 #3
0
ファイル: NodeBases.py プロジェクト: vt100/Nuitka
    def asXmlText(self):
        xml = self.asXml()

        return TreeXML.toString(xml)
コード例 #4
0
ファイル: NodeBases.py プロジェクト: justus922/Nuitka
    def asXmlText(self):
        xml = self.asXml()

        return TreeXML.toString(xml)