diff options
Diffstat (limited to 'pkg_resources.py')
-rw-r--r-- | pkg_resources.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index 96381932..4975680d 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -528,7 +528,9 @@ class WorkingSet(object): env = Environment(self.entries) dist = best[req.key] = env.best_match(req, self, installer) if dist is None: - raise DistributionNotFound(req) # XXX put more info here + msg = ("The '%s' distribution was not found on this " + "system, and is required by this application.") + raise DistributionNotFound(msg % req) to_activate.append(dist) if dist not in req: # Oops, the "best" so far conflicts with a dependency |