"""
This should work for python version 2.6 - 3.1
"""

import py_compile
import sys


def compile_cache_file(source_path, out_path):
    py_compile.compile(source_path, out_path)


if __name__ == "__main__":
    source_path = sys.argv[1]
    out_path = sys.argv[2]
    compile_cache_file(source_path, out_path)
