def check_compatibility(version, name):
if not version:<EOL><INDENT>raise UnsupportedWheel(<EOL>"<STR_LIT>" % name<EOL>)<EOL><DEDENT>if version[<NUM_LIT:0>] > VERSION_COMPATIBLE[<NUM_LIT:0>]:<EOL><INDENT>raise UnsupportedWheel(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % (name, '<STR_LIT:.>'.join(map(str, version)))<EOL>)<EOL><DEDENT>elif version > VERSION_COMPATIBLE:<EOL><INDENT>logger.warning(<EOL>'<STR_LIT>',<EOL>'<STR_LIT:.>'.join(map(str, version)),<EOL>)<EOL><DEDENT>
Raises errors or warns if called with an incompatible Wheel-Version.

Pip should refuse to install a Wheel-Version that's a major series
ahead of what it's compatible with (e.g 2.0 > 1.1); and warn when
installing a version only minor version ahead (e.g 1.2 > 1.1).

version: a 2-tuple representing a Wheel-Version (Major, Minor)
name: name of wheel or package to raise exception about

:raises UnsupportedWheel: when an incompatible Wheel-Version is given