Exemplo n.º 1
0
 def execute(args):
     try:
         nope.compile(args.path, args.output_dir, args.backend)
     except errors.TypeCheckError as error:
         _print_error(error)
         return 1
Exemplo n.º 2
0
def compiled(platform, path, program):
    with tempman.create_temp_dir() as temp_dir:
        output_dir = temp_dir.path
        nope.compile(path, output_dir, platform)
        filename = "{}.{}".format(program, platform.extension)
        yield CompiledCode(output_dir, filename)