def default_hook(config):
if (any(arg.startswith('<STR_LIT>') for arg in sys.argv) and<EOL>os.path.isdir(PY2K_DIR) != IS_PY2K and os.path.isdir(LIB_DIR)):<EOL><INDENT>shutil.rmtree(LIB_DIR)<EOL><DEDENT>if IS_PY2K and any(arg.startswith(('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT:test>'))<EOL>for arg in sys.argv):<EOL><INDENT>generate_py2k(config)<EOL>packages_root = get_cfg_value(config, '<STR_LIT>', '<STR_LIT>')<EOL>packages_root = os.path.join(PY2K_DIR, packages_root)<EOL>set_cfg_value(config, '<STR_LIT>', '<STR_LIT>', packages_root)<EOL><DEDENT>
Default setup hook.