h2o-r/scripts/build_minicran.py
def main(argv):
    """
    Main program.

    @return: none
    """
    global g_script_name
    global g_tmp_dir

    g_script_name = os.path.basename(argv[0])

    # Override any defaults with the user's choices.
    parse_args(argv)

    # Create tmp dir and clean up on exit with a callback.
    g_tmp_dir = tempfile.mkdtemp(suffix=".tmp_minicran")
    print "Created tmp directory: " + g_tmp_dir
    atexit.register(remove_tmp_dir)

    # Do the work.
    try:
        b = MinicranBuilder(g_print_only, g_output_dir, g_tmp_dir, g_platform, g_rversion, g_branch, g_buildnum)
        b.build()
    except KeyboardInterrupt:
        print("")
        pass
def main(argv):
    """
    Main program.

    @return: none
    """
    global g_script_name
    global g_tmp_dir

    g_script_name = os.path.basename(argv[0])

    # Override any defaults with the user's choices.
    parse_args(argv)

    # Create tmp dir and clean up on exit with a callback.
    g_tmp_dir = tempfile.mkdtemp(suffix=".tmp_minicran")
    print "Created tmp directory: " + g_tmp_dir
    atexit.register(remove_tmp_dir)

    # Do the work.
    try:
        b = MinicranBuilder(g_print_only, g_output_dir, g_tmp_dir, g_platform, g_rversion, g_branch, g_buildnum)
        b.build()
    except KeyboardInterrupt:
        print("")
        pass
def main ( argv ) : global g_script_name global g_tmp_dir g_script_name = os . path . basename ( argv [ 0 ] ) # Override any defaults with the user's choices. parse_args ( argv ) # Create tmp dir and clean up on exit with a callback. g_tmp_dir = tempfile . mkdtemp ( suffix = ".tmp_minicran" ) print "Created tmp directory: " + g_tmp_dir atexit . register ( remove_tmp_dir ) # Do the work. try : b = MinicranBuilder ( g_print_only , g_output_dir , g_tmp_dir , g_platform , g_rversion , g_branch , g_buildnum ) b . build ( ) except KeyboardInterrupt : print ( "" ) pass
Main program.

    @return: none
Main program .