def get_gitpython_version():
<EOL>if not in_git_clone():<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>try:<EOL><INDENT>gitv = subprocess.check_output('<STR_LIT>', shell=True)<EOL><DEDENT>except (OSError, IOError, subprocess.CalledProcessError):<EOL><INDENT>git_version = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>if isinstance(gitv, bytes):<EOL><INDENT>gitv = gitv.decode('<STR_LIT:utf-8>')<EOL><DEDENT>git_version = gitv.strip().split()[<NUM_LIT:2>]<EOL><DEDENT>if LooseVersion(git_version) >= '<STR_LIT>':<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>return '<STR_LIT>'<EOL>
Determine the required version of GitPython

    Because of target systems running very, very old versions of setuptools,
    we only specify the actual version we need when we need it.