def setup(fips_dir, proj_dir) :
    log.colored(log.YELLOW, '=== setup NaCl SDK:')

    ensure_sdk_dirs(fips_dir)

    # download SDK archive
    if not os.path.isfile(get_archive_path(fips_dir)) :
        log.info("downloading...")
        urllib.urlretrieve(get_sdk_url(), get_archive_path(fips_dir), util.url_download_hook)
    else :
        log.info("'nacl_sdk.zip' already exists")
    
    # uncompress SDK archive
    log.info("unpacking...")
    uncompress(fips_dir, get_archive_path(fips_dir))

    # setup SDK
    log.info("setup NaCl SDK...")
    update_nacl_sdk(fips_dir)

    log.colored(log.GREEN, "done.")

#-------------------------------------------------------------------------------
main setup function
dataset/ETHPy150Open floooh/fips/mod/nacl.py/setup