diff options
author | Reinout van Rees <reinout@vanrees.org> | 2009-10-14 15:22:44 +0200 |
---|---|---|
committer | Reinout van Rees <reinout@vanrees.org> | 2009-10-14 15:22:44 +0200 |
commit | 03a95e191c1e128a04911ae415a36cbcb6ab1901 (patch) | |
tree | 7e882ad4026949441a43528aeee89e89a5816474 /pkg_resources.py | |
parent | dd2b4ffb2f582bf8270c0ceed490bf035a9e553b (diff) | |
download | external_python_setuptools-03a95e191c1e128a04911ae415a36cbcb6ab1901.tar.gz external_python_setuptools-03a95e191c1e128a04911ae415a36cbcb6ab1901.tar.bz2 external_python_setuptools-03a95e191c1e128a04911ae415a36cbcb6ab1901.zip |
an error is raised when installing a 0.7 setuptools with distribute
--HG--
branch : distribute
extra : rebase_source : f68fe9818972a09d858f2bb59ef47682353f600d
Diffstat (limited to 'pkg_resources.py')
-rw-r--r-- | pkg_resources.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index 510be536..c0371864 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -2239,8 +2239,11 @@ class Distribution(object): loc = loc or self.location - # TODO: raise error if we're adding setuptools >= 0.7 as that is - # guaranteed to be incompatible with distribute. + if self.project_name == 'setuptools': + if '0.7' in self.version: + raise ValueError( + "A 0.7-series setuptools cannot be installed " + "with distribute") if not loc: return |