def main(command_line=0): args = sys.argv[1:] any_failures = 0 if command_line: from CmdLine import parse_command_line options, sources = parse_command_line(args) else: options = CompilationOptions(default_options) sources = args if options.show_version: print >> sys.stderr, "Pyrex version %s" % Version.version try: result = compile(sources, options) if result.num_errors > 0: any_failures = 1 except EnvironmentError, e: print >> sys.stderr, e any_failures = 1
def main(command_line = 0): args = sys.argv[1:] any_failures = 0 if command_line: from CmdLine import parse_command_line options, sources = parse_command_line(args) else: options = CompilationOptions(default_options) sources = args if options.show_version: print >>sys.stderr, "Pyrex version %s" % Version.version try: result = compile(sources, options) if result.num_errors > 0: any_failures = 1 except EnvironmentError, e: print >>sys.stderr, e any_failures = 1
def main(command_line = 0): args = sys.argv[1:] any_failures = 0 if command_line: from CmdLine import parse_command_line options, sources = parse_command_line(args) else: options = default_options sources = args if options.show_version: print >>sys.stderr, "Pyrex version %s" % Version.version context = Context(options.include_path) for source in sources: try: result = context.compile(source, options) if result.num_errors > 0: any_failures = 1 except PyrexError, e: print >>sys.stderr, e any_failures = 1
def main(command_line = 0): args = sys.argv[1:] any_failures = 0 if command_line: from CmdLine import parse_command_line options, sources = parse_command_line(args) else: options = CompilationOptions(default_options) sources = args if options.show_version: sys.stderr.write("Cython version %s\n" % Version.version) if options.working_path!="": os.chdir(options.working_path) try: result = compile(sources, options) if result.num_errors > 0: any_failures = 1 except (EnvironmentError, PyrexError), e: sys.stderr.write(str(e) + '\n') any_failures = 1
def main(command_line=0): args = sys.argv[1:] any_failures = 0 if command_line: from CmdLine import parse_command_line options, sources = parse_command_line(args) else: options = CompilationOptions(default_options) sources = args if options.show_version: sys.stderr.write("Cython version %s\n" % Version.version) if options.working_path != "": os.chdir(options.working_path) try: result = compile(sources, options) if result.num_errors > 0: any_failures = 1 except (EnvironmentError, PyrexError), e: sys.stderr.write(str(e) + '\n') any_failures = 1
def main(command_line = 0): args = sys.argv[1:] any_failures = 0 if command_line: from CmdLine import parse_command_line options, sources = parse_command_line(args) else: options = default_options sources = args if options.show_version: print >>sys.stderr, "Cython version %s" % Version.version context = Context(options.include_path) for source in sources: try: result = context.compile(source, options) if result.num_errors > 0: any_failures = 1 except PyrexError, e: print >>sys.stderr, e any_failures = 1