Skip to content

Commit

Permalink
Handle ImportError due to removal of pip.log
Browse files Browse the repository at this point in the history
Use stdlib logger in newer versions of pip
See pypa/pip#2008 for details
  • Loading branch information
jgmize committed Dec 29, 2014
1 parent b4c6ef8 commit 55da5e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion peep.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ def activate(specifier):
except ImportError:
from pip.util import url_to_filename as url_to_path # 0.6.2
from pip.index import PackageFinder, Link
from pip.log import logger
try:
from pip.log import logger
except ImportError:
from pip import logger # https://github.com/pypa/pip/pull/2008
from pip.req import parse_requirements


Expand Down

0 comments on commit 55da5e5

Please sign in to comment.