diff options
| author | PJ Eby <distutils-sig@python.org> | 2006-02-12 19:32:17 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2006-02-12 19:32:17 +0000 |
| commit | a24a73e7be4e82afe5d0c96439fdc5432350987f (patch) | |
| tree | 3a6a5b222c32737c6917acc04ad7b667fb5a8de5 /setuptools/dist.py | |
| parent | afdfd43bc6743b5d4114b638c7b376db5e60b3c9 (diff) | |
| download | python-setuptools-git-a24a73e7be4e82afe5d0c96439fdc5432350987f.tar.gz | |
Workaround for packages that think 'version' is a number.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042337
Diffstat (limited to 'setuptools/dist.py')
| -rw-r--r-- | setuptools/dist.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py index 4a0ae146..273ffe00 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -118,7 +118,7 @@ def check_package_data(dist, attr, value): "wildcard patterns" ) - + class Distribution(_Distribution): @@ -221,6 +221,9 @@ class Distribution(_Distribution): _Distribution.__init__(self,attrs) + if isinstance(self.metadata.version, (int,long,float)): + # Some people apparently take "version number" too literally :) + self.metadata.version = str(self.metadata.version) def parse_command_line(self): """Process features after parsing command line options""" @@ -241,9 +244,6 @@ class Distribution(_Distribution): ): working_set.add(dist) - - - def finalize_options(self): _Distribution.finalize_options(self) |
