本文整理汇总了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()
示例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()
示例3: finish
# 需要导入模块: from cx.utils.cxPrintFormatter import PrintFormatter [as 别名]
# 或者: from cx.utils.cxPrintFormatter.PrintFormatter import finish [as 别名]
def finish(self):
PrintFormatter.finish()