def setup_versioneer():
try:<EOL><INDENT>import versioneer<EOL>versioneer.get_version()<EOL><DEDENT>except ImportError:<EOL><INDENT>import subprocess<EOL>try:<EOL><INDENT>subprocess.check_output(["<STR_LIT>", "<STR_LIT>"])<EOL><DEDENT>except OSError:<EOL><INDENT>output = pip_command_output(["<STR_LIT>", "<STR_LIT>", "<STR_LIT>"])<EOL>import os<EOL>main_path = [x[len("<STR_LIT>"):] for x in output.splitlines()<EOL>if x.startswith("<STR_LIT>")][<NUM_LIT:0>]<EOL>bin_path = [x[len("<STR_LIT:U+0020>"):] for x in output.splitlines()<EOL>if x.endswith(os.path.sep + "<STR_LIT>")][<NUM_LIT:0>]<EOL>exe_path = os.path.join(main_path, bin_path)<EOL>subprocess.check_output(["<STR_LIT>", exe_path, "<STR_LIT>"])<EOL><DEDENT><DEDENT>
Generate (temporarily) versioneer.py file in project root directory
:return: