From 356b2a25476a09f6e67649c3db6730bf14a9f897 Mon Sep 17 00:00:00 2001 From: Ian Bicking Date: Tue, 28 Oct 2008 15:31:03 -0500 Subject: [PATCH] [svn r21094] Fix problem with using uninstalled pip --- docs/news.txt | 8 +++++++- pip.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/news.txt b/docs/news.txt index 9e7f7b77e..f8a3521c5 100644 --- a/docs/news.txt +++ b/docs/news.txt @@ -1,5 +1,11 @@ News for pip -================== +============ + +svn trunk +--------- + +* Fixed small problem that prevented using ``pip.py`` without actually + installing pip. 0.2 --- diff --git a/pip.py b/pip.py index 9e99272c3..c285023a1 100644 --- a/pip.py +++ b/pip.py @@ -53,7 +53,7 @@ try: pip_dist = pkg_resources.get_distribution('pip') version = '%s from %s (python %s)' % ( pip_dist, pip_dist.location, sys.version[:3]) -except DistributionNotFound: +except pkg_resources.DistributionNotFound: # when running pip.py without installing version=None