def _reload_version(self):
md_version = _version_from_file(self._get_metadata(self.PKG_INFO))<EOL>if md_version:<EOL><INDENT>self._version = md_version<EOL><DEDENT>return self<EOL>
Packages installed by distutils (e.g. numpy or scipy),
which uses an old safe_version, and so
their version numbers can get mangled when
converted to filenames (e.g., 1.11.0.dev0+2329eae to
1.11.0.dev0_2329eae). These distributions will not be
parsed properly
downstream by Distribution and safe_version, so
take an extra step and try to get the version number from
the metadata file itself instead of the filename.