def run(self, ctx): opts = ctx.cmd_opts o, a = self.parser.parse_args(opts) if o.help: self.parser.print_help() return pprint("PINK", "=================================================================") pprint("PINK", "Detecting used distutils extension(s) ... (This may take a while)") type = whole_test(o.setup_file, o.verbose) pprint("PINK", "Done !") pprint("PINK", "=================================================================") pprint("GREEN", "Detected type: %s" % type)
def run(self, ctx): argv = ctx.get_command_arguments() p = ctx.options_context.parser o, a = p.parse_args(argv) if o.help: p.print_help() return log = StringIO.StringIO() pprint("PINK", "=================================================================") pprint("PINK", "Detecting used distutils extension(s) ... (This may take a while)") type = whole_test(o.setup_file, o.verbose, log) pprint("PINK", "Done !") pprint("PINK", "=================================================================") pprint("GREEN", "Detected type: %s" % type)