summaryrefslogtreecommitdiff
path: root/pkg_resources.py
diff options
context:
space:
mode:
authorReinout van Rees <reinout@vanrees.org>2009-10-14 12:25:10 +0200
committerReinout van Rees <reinout@vanrees.org>2009-10-14 12:25:10 +0200
commit2bc44120a777de52ae38f4c932db074bc300f4c9 (patch)
tree92cd17d1709cd02df6ce05b50edb7fad3079e243 /pkg_resources.py
parent774fb7a0387f33b8dbcd0cbb46e7ea0c15049260 (diff)
downloadpython-setuptools-git-2bc44120a777de52ae38f4c932db074bc300f4c9.tar.gz
marked the two spots where a setuptools < 0.7 check needs to happen
--HG-- branch : distribute extra : rebase_source : 1bca77205a947da3227c069e237951258fc72ffb
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index fec60626..2fbf415d 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -505,6 +505,7 @@ class WorkingSet(object):
while requirements:
req = requirements.pop(0) # process dependencies breadth-first
if req.project_name == 'setuptools':
+ # TODO: only return distribute if setuptools < 0.7
req = Requirement.parse('distribute')
if req in processed:
@@ -2497,6 +2498,7 @@ class Requirement:
# and if distribute is installed, we want to give
# distribute instead
if founded_req.project_name == 'setuptools':
+ # TODO: only return distribute if setuptools < 0.7
distribute = list(parse_requirements('distribute'))
if len(distribute) == 1:
return distribute[0]