diff options
| author | PJ Eby <distutils-sig@python.org> | 2005-07-08 04:45:58 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2005-07-08 04:45:58 +0000 |
| commit | 56fcb8fdcc377acf0d74430a3d2d4dbffe306d44 (patch) | |
| tree | e80f347416da36f2d765d0c50d066bf6997dc085 /pkg_resources.py | |
| parent | 5b4efda5148fc5ac79b5aaf02eb4dbf6c68c866b (diff) | |
| download | python-setuptools-git-56fcb8fdcc377acf0d74430a3d2d4dbffe306d44.tar.gz | |
The "egg_info" command now always sets the distribution metadata to "safe"
forms of the distribution name and version, so that distribution files will
be generated with parseable names (i.e., ones that don't include '-' in the
name or version). Also, this means that if you use the various ``--tag``
options of "egg_info", any distributions generated will use the tags in the
version, not just egg distributions.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041092
Diffstat (limited to 'pkg_resources.py')
| -rw-r--r-- | pkg_resources.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index 2ba7ba41..583a5c84 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -1299,7 +1299,7 @@ class Distribution(object): except AttributeError: for line in self._get_metadata('PKG-INFO'): if line.lower().startswith('version:'): - self._version = line.split(':',1)[1].strip() + self._version = safe_version(line.split(':',1)[1].strip()) return self._version else: raise AttributeError( |
