def build_and_install_wheel(python):
dist_type = "<STR_LIT>" if not SDIST else "<STR_LIT>"<EOL>return_code = run_command("<STR_LIT>".format(python, dist_type))<EOL>if return_code != <NUM_LIT:0>:<EOL><INDENT>print("<STR_LIT>")<EOL>exit(return_code)<EOL><DEDENT>assert check_wheel_existence()<EOL>print("<STR_LIT>")<EOL>wheel = [file for file in os.listdir("<STR_LIT>") if file.endswith(("<STR_LIT>", "<STR_LIT>"))][<NUM_LIT:0>]<EOL>wheel = os.path.join("<STR_LIT>", wheel)<EOL>print("<STR_LIT>", wheel)<EOL>return_code = run_command("<STR_LIT>".format(python, wheel))<EOL>if return_code != <NUM_LIT:0>:<EOL><INDENT>print("<STR_LIT>")<EOL>exit(return_code)<EOL><DEDENT>print("<STR_LIT>")<EOL>
Build a binary distribution wheel and install it