summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg_resources.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 9f1baca4..3660a2a5 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -537,9 +537,13 @@ class WorkingSet(object):
env = Environment(self.entries)
dist = best[req.key] = env.best_match(req, self, installer)
if dist is None:
- msg = ("The '%s' distribution was not found on this "
- "system, and is required by this application.")
- raise DistributionNotFound(msg % req)
+ #msg = ("The '%s' distribution was not found on this "
+ # "system, and is required by this application.")
+ #raise DistributionNotFound(msg % req)
+
+ # unfortunately, zc.buildout uses a str(err)
+ # to get the name of the distribution here..
+ raise DistributionNotFound(req)
to_activate.append(dist)
if dist not in req:
# Oops, the "best" so far conflicts with a dependency