def _extract_version(package_name):
try:<EOL><INDENT>return pkg_resources.get_distribution(package_name).version<EOL><DEDENT>except pkg_resources.DistributionNotFound:<EOL><INDENT>_conf = read_configuration(os.path.join(PROJECT_DIR, "<STR_LIT>"))<EOL><DEDENT>return _conf["<STR_LIT>"]["<STR_LIT:version>"]<EOL>
Get package version from installed distribution or configuration file if not
installed