当前位置: 首页>>代码示例>>Python>>正文


Python PrintFormatter.finish方法代码示例

本文整理汇总了Python中cx.utils.cxPrintFormatter.PrintFormatter.finish方法的典型用法代码示例。如果您正苦于以下问题:Python PrintFormatter.finish方法的具体用法?Python PrintFormatter.finish怎么用?Python PrintFormatter.finish使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cx.utils.cxPrintFormatter.PrintFormatter的用法示例。


在下文中一共展示了PrintFormatter.finish方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: run

# 需要导入模块: from cx.utils.cxPrintFormatter import PrintFormatter [as 别名]
# 或者: from cx.utils.cxPrintFormatter.PrintFormatter import finish [as 别名]
    def run(self):
        options = self.options
        assembly = self.assembly

        if options.all:
            assembly.selectAllLibraries()
        else:
            assembly.selectLibraries(options.components)

        # display help if no components selected
        if len(assembly.getSelectedLibraries()) == 0:
            PrintFormatter.printInfo("No libraries selected, exiting...")
            self.argumentParser.print_help()
            return

        # info + verification
        assembly.controlData.printSettings()
        print "Use the following components:\n ", "\n  ".join(assembly.getSelectedLibraries())

        print ""
        print "*********************************************************************"
        print "The superbuild will check out and build in [repo/../..], expanded to:"
        print ""
        print "    %s" % assembly.controlData.getRootDir()
        print ""
        print "*********************************************************************"
        print ""

        self._promptToContinue(options.silent_mode)

        assembly.process(
            checkout=options.full or options.checkout,
            configure_clean=options.configure_clean,
            configure=options.full or options.configure,
            clean=options.clean,
            build=options.full or options.build,
        )

        # self.cxBuilder.finish()
        PrintFormatter.finish()
开发者ID:normit-nav,项目名称:CustusX,代码行数:42,代码来源:cxInstallScript.py

示例2: run

# 需要导入模块: from cx.utils.cxPrintFormatter import PrintFormatter [as 别名]
# 或者: from cx.utils.cxPrintFormatter.PrintFormatter import finish [as 别名]
    def run(self):
        options = self.options
        assembly = self.assembly
                
        if options.all:
            assembly.selectAllLibraries()
        else:
            assembly.selectLibraries(options.components)

        # display help if no components selected
        if len(assembly.getSelectedLibraries())==0:
            PrintFormatter.printInfo("No libraries selected, exiting...")
            self.argumentParser.print_help()
            return

        # info + verification
        assembly.controlData.printSettings()
        libs = [lib for lib in assembly.libraries if lib.name() in assembly.selectedLibraryNames]
        text = ['%45s     %s' % (lib.name(), lib.repository()) for lib in libs]
        print 'Use the following components:\n ', '\n  '.join(text)
        
        print ''
        print '*********************************************************************'
        print 'The superbuild will check out and build in [repo/../..], expanded to:'
        print ''
        print '    %s' % assembly.controlData.getRootDir()
        print ''
        print '*********************************************************************'
        print ''
        
        self._promptToContinue(options.silent_mode)
        
        assembly.process(checkout = options.full or options.checkout, 
                         configure_clean = options.configure_clean, 
                         configure = options.full or options.configure, 
                         clean = options.clean, 
                         build = options.full or options.make)        
        
        #self.cxBuilder.finish()
        PrintFormatter.finish()
开发者ID:SINTEFMedtek,项目名称:CustusX,代码行数:42,代码来源:cxInstallScript.py

示例3: finish

# 需要导入模块: from cx.utils.cxPrintFormatter import PrintFormatter [as 别名]
# 或者: from cx.utils.cxPrintFormatter.PrintFormatter import finish [as 别名]
 def finish(self):
     PrintFormatter.finish()
开发者ID:SINTEFMedtek,项目名称:CustusX,代码行数:4,代码来源:cxCustusXBuilder.py


注:本文中的cx.utils.cxPrintFormatter.PrintFormatter.finish方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。